Documentation
¶
Index ¶
- func Run(inputs ...string) error
- type OASComponent
- type OASContact
- type OASExample
- type OASExternalDocumentation
- type OASInfo
- type OASLicense
- type OASMediaType
- type OASOperationObject
- type OASParameter
- type OASPathItem
- type OASRequestBody
- type OASResponse
- type OASRoot
- type OASSchema
- type OASSecurityScheme
- type OASServer
- type OASServerVariable
- type ObjTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OASComponent ¶
type OASComponent struct { SecuritySchemes map[string]OASSecurityScheme `json:"securitySchemes"` Parameters map[string]OASParameter `json:"parameters,omitempty"` Schemes map[string]OASSchema `json:"schemes"` }
type OASContact ¶
type OASExample ¶
type OASInfo ¶
type OASInfo struct { Title string `json:"title"` Version string `json:"version"` Description string `json:"description"` TermsOfService string `json:"termsOfService"` Contact OASContact `json:"contact"` License OASLicense `json:"license"` }
type OASLicense ¶
type OASMediaType ¶
type OASMediaType struct { Schema OASSchema `json:"schema,omitempty"` Example any `json:"example,omitempty"` Examples map[string]OASExample `json:"examples,omitempty"` }
type OASOperationObject ¶
type OASOperationObject struct { Tags []string `json:"tags"` Summary string `json:"summary,omitempty"` OperationID string `json:"operationId"` Parameters []OASParameter `json:"parameters"` RequestBody OASRequestBody `json:"requestBody"` Responses map[string]OASResponse `json:"responses"` }
type OASParameter ¶
type OASPathItem ¶
type OASPathItem struct { Get OASOperationObject `json:"get,omitempty"` Post OASOperationObject `json:"post,omitempty"` Put OASOperationObject `json:"put,omitempty"` Delete OASOperationObject `json:"delete,omitempty"` Summary string `json:"summary,omitempty"` Description string `json:"description,omitempty"` Ref string `json:"$ref"` Servers OASServer `json:"servers,omitempty"` Parameters OASParameter `json:"parameters,omitempty"` }
type OASRequestBody ¶
type OASRequestBody struct { Description string `json:"description,omitempty"` Content map[string]OASMediaType `json:"content"` Required bool `json:"required,omitempty"` }
type OASResponse ¶
type OASResponse struct { Description string `json:"description,omitempty"` Content map[string]OASMediaType `json:"content"` }
type OASRoot ¶
type OASRoot struct { OpenAPI string `json:"openapi"` Info OASInfo `json:"info"` Servers []OASServer `json:"servers"` ExternalDocs OASExternalDocumentation `json:"externalDocs"` Paths map[string]OASPathItem `json:"paths"` Components map[string]OASComponent `json:"components"` }
type OASSecurityScheme ¶
type OASSecurityScheme struct { }
type OASServer ¶
type OASServer struct { Description string `json:"description"` Url string `json:"url"` Variables map[string]OASServerVariable `json:"variables"` }
type OASServerVariable ¶
type ObjTemplate ¶
ObjTemplate ...
Click to show internal directories.
Click to hide internal directories.