openapi

package
v0.25.3-rc.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 12 Imported by: 327

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOperationIDAndTags

func GetOperationIDAndTags(r *restful.Route) (string, []string, error)

GetOperationIDAndTags returns a customize operation ID and a list of tags for kubernetes API server's OpenAPI spec to prevent duplicate IDs.

func ToValidOperationID

func ToValidOperationID(s string, capitalizeFirstLetter bool) string

ToValidOperationID makes an string a valid op ID (e.g. removing punctuations and whitespaces and make it camel case)

Types

type DefinitionNamer

type DefinitionNamer struct {
	// contains filtered or unexported fields
}

DefinitionNamer is the type to customize OpenAPI definition name.

func NewDefinitionNamer

func NewDefinitionNamer(schemes ...*runtime.Scheme) *DefinitionNamer

NewDefinitionNamer constructs a new DefinitionNamer to be used to customize OpenAPI spec.

func (*DefinitionNamer) GetDefinitionName

func (d *DefinitionNamer) GetDefinitionName(name string) (string, spec.Extensions)

GetDefinitionName returns the name and tags for a given definition

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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