kube-openapik8s.io/kube-openapi/pkg/openapiconv Index | Files

package openapiconv

import "k8s.io/kube-openapi/pkg/openapiconv"

Index

Variables

var OpenAPIV2DefPrefix = "#/definitions/"
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.

Source Files

convert.go

Version
v0.0.0-20250318190949-c8a335a9a2ff (latest)
Published
Mar 18, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
4 weeks ago

Tools for package owners.