Documentation ¶
Index ¶
- Variables
- func ConvertComponents(v2SecurityDefinitions spec.SecurityDefinitions, v2Definitions spec.Definitions, ...) *spec3.Components
- func ConvertExternalDocumentation(v2ED *spec.ExternalDocumentation) *spec3.ExternalDocumentation
- func ConvertOperation(v2Operation *spec.Operation) *spec3.Operation
- func ConvertParameter(v2Param spec.Parameter) *spec3.Parameter
- func ConvertPathItem(v2pathItem spec.PathItem) *spec3.Path
- func ConvertPaths(v2Paths *spec.Paths) *spec3.Paths
- func ConvertRefableParameter(refable spec.Refable) spec.Refable
- func ConvertRefableResponse(refable spec.Refable) spec.Refable
- func ConvertResponse(v2Response *spec.Response, produces []string) *spec3.Response
- func ConvertSchema(v2Schema *spec.Schema) *spec.Schema
- func ConvertSchemaList(v2SchemaList []spec.Schema) []spec.Schema
- func ConvertSecurityScheme(v2securityScheme *spec.SecurityScheme) *spec3.SecurityScheme
- func ConvertV2ToV3(v2Spec *spec.Swagger) *spec3.OpenAPI
Constants ¶
This section is empty.
Variables ¶
View Source
var OpenAPIV2DefPrefix = "#/definitions/"
View Source
var OpenAPIV3DefPrefix = "#/components/schemas/"
Functions ¶
func ConvertComponents ¶
func ConvertComponents(v2SecurityDefinitions spec.SecurityDefinitions, v2Definitions spec.Definitions, v2Responses map[string]spec.Response, produces []string) *spec3.Components
func ConvertExternalDocumentation ¶
func ConvertExternalDocumentation(v2ED *spec.ExternalDocumentation) *spec3.ExternalDocumentation
func ConvertResponse ¶
func ConvertSecurityScheme ¶
func ConvertSecurityScheme(v2securityScheme *spec.SecurityScheme) *spec3.SecurityScheme
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.