kubernetes/vendor/k8s.io/kube-openapi/pkg/builder3/openapi.go

const OpenAPIVersion

type openAPI

func groupRoutesByPath(routes []common.Route) map[string][]common.Route {}

func (o *openAPI) buildResponse(model interface{}

func (o *openAPI) buildOperations(route common.Route, inPathCommonParamsMap map[interface{}

func (o *openAPI) buildRequestBody(parameters []common.Parameter, consumes []string, bodySample interface{}

func newOpenAPI(config *common.OpenAPIV3Config) openAPI {}

func (o *openAPI) buildOpenAPISpec(webServices []common.RouteContainer) error {}

// BuildOpenAPISpec builds OpenAPI v3 spec given a list of route containers and common.Config to customize it.
//
// Deprecated: BuildOpenAPISpecFromRoutes should be used instead.
func BuildOpenAPISpec(webServices []*restful.WebService, config *common.OpenAPIV3Config) (*spec3.OpenAPI, error) {}

// BuildOpenAPISpecFromRoutes builds OpenAPI v3 spec given a list of route containers and common.Config to customize it.
func BuildOpenAPISpecFromRoutes(webServices []common.RouteContainer, config *common.OpenAPIV3Config) (*spec3.OpenAPI, error) {}

// BuildOpenAPIDefinitionsForResource builds a partial OpenAPI spec given a sample object and common.Config to customize it.
// BuildOpenAPIDefinitionsForResources returns the OpenAPI spec which includes the definitions for the
// passed type names.
func BuildOpenAPIDefinitionsForResources(config *common.OpenAPIV3Config, names ...string) (map[string]*spec.Schema, error) {}

func (o *openAPI) findCommonParameters(routes []common.Route) (map[interface{}

func (o *openAPI) buildParameters(restParam []common.Parameter) (ret []*spec3.Parameter, err error) {}

func (o *openAPI) buildParameter(restParam common.Parameter) (ret *spec3.Parameter, err error) {}

func (o *openAPI) buildDefinitionRecursively(name string) error {}

func (o *openAPI) buildDefinitionForType(name string) (string, error) {}

func (o *openAPI) toSchema(name string) (_ *spec.Schema, err error) {}