Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Components ¶
type Method ¶
type Method struct {
Summary string `json:"summary" yaml:"summary"`
Description string `json:"description" yaml:"description"`
Parameters []Parameter `json:"parameters" yaml:"parameters"`
RequestBody RequestBody `json:"requestBody" yaml:"requestBody"`
}
type Property ¶
type Property struct {
Type string `json:"type" yaml:"type"`
Format string `json:"format,omitempty" yaml:"format,omitempty"`
Description string `json:"description" yaml:"description"`
Example any `json:"example" yaml:"example"`
Default any `json:"default" yaml:"default"`
Items *Schema `json:"items,omitempty" yaml:"items,omitempty"`
Ref string `json:"$ref,omitempty" yaml:"$ref,omitempty"`
OneOf []Schema `json:"oneOf,omitempty" yaml:"oneOf,omitempty"`
AnyOf []Schema `json:"anyOf,omitempty" yaml:"anyOf,omitempty"`
AllOf []Schema `json:"allOf,omitempty" yaml:"allOf,omitempty"`
Properties map[string]Property `json:"properties,omitempty" yaml:"properties,omitempty"`
}
type RequestBody ¶
type Schema ¶
type Schema struct {
Ref string `json:"$ref,omitempty" yaml:"$ref,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
Properties map[string]Property `json:"properties,omitempty" yaml:"properties,omitempty"`
Example any `json:"example" yaml:"example"`
Default any `json:"default" yaml:"default"`
Items *Schema `json:"items,omitempty" yaml:"items,omitempty"`
OneOf []Schema `json:"oneOf,omitempty" yaml:"oneOf,omitempty"`
AnyOf []Schema `json:"anyOf,omitempty" yaml:"anyOf,omitempty"`
AllOf []Schema `json:"allOf,omitempty" yaml:"allOf,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.