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)
}
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 }
Click to show internal directories.
Click to hide internal directories.