openapi

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 10 Imported by: 53

Documentation

Index

Constants

View Source
const ContentTypeOpenAPIV3PB = "application/com.github.proto-openapi.spec.v3@v1.0+protobuf"

Variables

This section is empty.

Functions

func NewTypeConverter added in v0.28.0

func NewTypeConverter(client Client, preserveUnknownFields bool) (managedfields.TypeConverter, error)

Types

type Client

type Client interface {
	Paths() (map[string]GroupVersion, error)
}

func NewClient

func NewClient(restClient rest.Interface) Client

type GroupVersion

type GroupVersion interface {
	Schema(contentType string) ([]byte, error)

	// ServerRelativeURL. Returns the path and parameters used to fetch the schema.
	// You should use the Schema method to fetch it, but this value can be used
	// to key the current version of the schema in a cache since it contains a
	// hash string which changes upon schema update.
	ServerRelativeURL() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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