openapiconv

package
v0.0.0-...-2c72e55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

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 ConvertOperation

func ConvertOperation(v2Operation *spec.Operation) *spec3.Operation

func ConvertParameter

func ConvertParameter(v2Param spec.Parameter) *spec3.Parameter

func ConvertPathItem

func ConvertPathItem(v2pathItem spec.PathItem) *spec3.Path

func ConvertPaths

func ConvertPaths(v2Paths *spec.Paths) *spec3.Paths

func ConvertRefableParameter

func ConvertRefableParameter(refable spec.Refable) spec.Refable

func ConvertRefableResponse

func ConvertRefableResponse(refable spec.Refable) spec.Refable

func ConvertResponse

func ConvertResponse(v2Response *spec.Response, produces []string) *spec3.Response

func ConvertSchema

func ConvertSchema(v2Schema *spec.Schema) *spec.Schema

func ConvertSchemaList

func ConvertSchemaList(v2SchemaList []spec.Schema) []spec.Schema

func ConvertSecurityScheme

func ConvertSecurityScheme(v2securityScheme *spec.SecurityScheme) *spec3.SecurityScheme

func ConvertV2ToV3

func ConvertV2ToV3(v2Spec *spec.Swagger) *spec3.OpenAPI

ConvertV2ToV3 converts an OpenAPI V2 object into V3. Certain references may be shared between the V2 and V3 objects in the conversion.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL