Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Components ¶
type Openapi ¶
type Openapi struct { Info *Info Servers []*Server PathItems map[string]map[string]*Operation `yaml:"paths"` Components *Components ServiceExtensions *pocket.ServiceExtensions }
func (*Openapi) SecurityScheme ¶
type Operation ¶
type Operation struct { Name string Summary string `yaml:"summary"` Description string `yaml:"description"` Id string `yaml:"operationId"` Tags []string Parameters []*Parameter Responses map[string]*Response RequestBody *RequestBody `yaml:"requestBody"` SecuritySchemes []map[string][]string `yaml:"security"` // contains filtered or unexported fields }
func (*Operation) HasRequestBody ¶
func (*Operation) ResponseErrorCodes ¶
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"` // contains filtered or unexported fields }
func NewSchema ¶
func NewSchema(options *SchemaOptions) *Schema
func (*Schema) HasRequiredProperty ¶
func (*Schema) IsRequired ¶
func (*Schema) RequiredProperties ¶
func (*Schema) SchemaType ¶
func (s *Schema) SchemaType() SchemaType
type SchemaOptions ¶
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
type Settings ¶
type Settings struct { Info *SettingsInfo Servers []*SettingsServer }
type SettingsInfo ¶
type SettingsServer ¶
Click to show internal directories.
Click to hide internal directories.