Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAPIPackages ¶
Types ¶
type FieldMeta ¶
type FieldMeta struct {
Name string `json:"name"`
Type string `json:"type"`
JSON string `json:"json,omitempty"`
Query string `json:"query,omitempty"`
Param string `json:"param,omitempty"`
Header string `json:"header,omitempty"`
Validate string `json:"validate,omitempty"`
Nested *TypeMeta `json:"nested,omitempty"`
}
type RouteMeta ¶
type RouteMeta struct {
ID string `json:"id"`
Method string `json:"method"`
Path string `json:"path"`
Summary string `json:"summary,omitempty"`
Description string `json:"description,omitempty"`
Tags []string `json:"tags,omitempty"`
Request *TypeMeta `json:"request,omitempty"`
Response *TypeMeta `json:"response,omitempty"`
StatusCode int `json:"status_code"`
}
func LoadRoutes ¶
type SchemaBuilder ¶
type SchemaBuilder struct {
// contains filtered or unexported fields
}
func NewSchemaBuilder ¶
func NewSchemaBuilder() *SchemaBuilder
func (*SchemaBuilder) BuildFromType ¶
func (b *SchemaBuilder) BuildFromType(t *TypeMeta)
func (*SchemaBuilder) Components ¶
func (b *SchemaBuilder) Components() openapi3.Schemas
Click to show internal directories.
Click to hide internal directories.