Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Components ¶
type MessageParser ¶
type MessageParser struct { Package *protobuf.Protobuf Settings *settings.Settings // contains filtered or unexported fields }
func (*MessageParser) GetMessageSchemas ¶
func (m *MessageParser) GetMessageSchemas( message *protobuf.Message, httpRule *annotations.HttpRule, methodExtensions *mextensionspb.MikrosMethodExtensions, pathParameters []string, ) (map[string]*Schema, error)
type Openapi ¶
type Openapi struct { Version string `yaml:"openapi"` Info *Info `yaml:"info"` Servers []*Server `yaml:"servers,omitempty"` PathItems map[string]map[string]*Operation `yaml:"paths,omitempty"` Components *Components `yaml:"components,omitempty"` // contains filtered or unexported fields }
func (*Openapi) ModuleName ¶
type Operation ¶
type Operation struct { Summary string `yaml:"summary"` Description string `yaml:"description"` Id string `yaml:"operationId"` Tags []string `yaml:"tags,omitempty"` Parameters []*Parameter `yaml:"parameters,omitempty"` Responses map[string]*Response `yaml:"responses,omitempty"` RequestBody *RequestBody `yaml:"requestBody,omitempty"` SecuritySchemes []map[string][]string `yaml:"security,omitempty"` // contains filtered or unexported fields }
type RequestBody ¶
type Schema ¶
type Schema struct { Minimum int `yaml:"minimum,omitempty"` Maximum int `yaml:"maximum,omitempty"` Type string `yaml:"type,omitempty"` Format string `yaml:"format,omitempty"` Ref string `yaml:"$ref,omitempty"` Description string `yaml:"description,omitempty"` Example string `yaml:"example,omitempty"` Items *Schema `yaml:"items,omitempty"` Enum []string `yaml:"enum,omitempty"` Required []string `yaml:"required,omitempty"` Properties map[string]*Schema `yaml:"properties,omitempty"` AdditionalProperties *Schema `yaml:"additionalProperties,omitempty"` AnyOf []*Schema `yaml:"anyOf,omitempty"` Message *protobuf.Message `yaml:"-"` // contains filtered or unexported fields }
func (*Schema) GetAdditionalPropertySchemas ¶
func (*Schema) HasAdditionalProperties ¶
func (*Schema) IsRequired ¶
func (*Schema) ProtoField ¶
type SchemaType ¶
type SchemaType int
const ( SchemaType_Unspecified SchemaType = iota SchemaType_Object SchemaType_String SchemaType_Array SchemaType_Bool SchemaType_Integer SchemaType_Number )
func (SchemaType) String ¶
func (s SchemaType) String() string
Click to show internal directories.
Click to hide internal directories.