Documentation ¶
Overview ¶
Package ogen implements OpenAPI v3 code generation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentSchema ¶
type ComponentSchema struct { Description string `json:"description"` Type string `json:"type"` Format string `json:"format"` Properties map[string]ComponentSchema `json:"properties"` Items *ComponentSchema `json:"items"` Ref string `json:"$ref"` }
type Components ¶
type Components struct {
Schemas map[string]ComponentSchema `json:"schemas"`
}
type Content ¶
type Content struct {
Schema ContentSchema `json:"schema"`
}
type ContentSchema ¶
type Parameter ¶
type Parameter struct { Name string `json:"name"` In string `json:"in"` Description string `json:"description"` Schema ComponentSchema `json:"schema"` Required bool `json:"required"` // TODO: implement Deprecated bool `json:"deprecated"` // TODO: implement AllowEmptyValue bool `json:" allowEmptyValue"` // TODO: implement }
type Path ¶
type Path map[string]PathMethod
type PathMethod ¶
type RequestBody ¶
type Spec ¶
type Spec struct { Title string `json:"title"` Description string `json:"description"` TermsOfService string `json:"termsOfService"` Contact *Contact `json:"contact"` License *License `json:"license"` Version string `json:"version"` Servers []Server `json:"servers"` Paths map[string]Path `json:"paths"` Components *Components `json:"components"` }
Click to show internal directories.
Click to hide internal directories.