Documentation
¶
Index ¶
- func AppendComponents(spec *v3.Document, components *v3.Components)
- func AppendStringDedupe(strs []string, str string) []string
- func BoolPtr(b bool) *bool
- func FormatComments(loc protoreflect.SourceLocation) string
- func FormatTypeRef(t string) string
- func IsEmpty(msg protoreflect.MessageDescriptor) bool
- func IsFieldDeprecated(fd protoreflect.FieldDescriptor) *bool
- func IsMethodDeprecated(md protoreflect.MethodDescriptor) *bool
- func IsWellKnown(msg protoreflect.MessageDescriptor) bool
- func MakeFieldName(opts options.Options, fd protoreflect.FieldDescriptor) string
- func MakeMediaTypes(opts options.Options, s *base.SchemaProxy, isRequest, isStreaming bool) *orderedmap.Map[string, *v3.MediaType]
- func MakePath(opts options.Options, main string) string
- func MethodToRequestBody(opts options.Options, method protoreflect.MethodDescriptor, ...) *v3.RequestBody
- func Singular(plural string) string
- func TypeFieldDescription(opts options.Options, tt protoreflect.FieldDescriptor) string
- type IDSchema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendComponents ¶
func AppendComponents(spec *v3.Document, components *v3.Components)
func AppendStringDedupe ¶
func FormatComments ¶
func FormatComments(loc protoreflect.SourceLocation) string
func FormatTypeRef ¶
func IsEmpty ¶
func IsEmpty(msg protoreflect.MessageDescriptor) bool
func IsFieldDeprecated ¶
func IsFieldDeprecated(fd protoreflect.FieldDescriptor) *bool
func IsMethodDeprecated ¶
func IsMethodDeprecated(md protoreflect.MethodDescriptor) *bool
func IsWellKnown ¶
func IsWellKnown(msg protoreflect.MessageDescriptor) bool
func MakeFieldName ¶
func MakeFieldName(opts options.Options, fd protoreflect.FieldDescriptor) string
func MakeMediaTypes ¶
func MakeMediaTypes(opts options.Options, s *base.SchemaProxy, isRequest, isStreaming bool) *orderedmap.Map[string, *v3.MediaType]
MakeMediaTypes generates media types with references to the bodies
func MethodToRequestBody ¶
func MethodToRequestBody(opts options.Options, method protoreflect.MethodDescriptor, s *base.SchemaProxy, isStreaming bool) *v3.RequestBody
func TypeFieldDescription ¶
func TypeFieldDescription(opts options.Options, tt protoreflect.FieldDescriptor) string
Types ¶
type IDSchema ¶
func NewGoogleAny ¶
func NewGoogleAny() *IDSchema
func WellKnownToSchema ¶
func WellKnownToSchema(msg protoreflect.MessageDescriptor) *IDSchema
Click to show internal directories.
Click to hide internal directories.