type DefinitionsSchemaResolver … // NewDefinitionsSchemaResolver creates a new DefinitionsSchemaResolver. // An example working setup: // getDefinitions = "k8s.io/kubernetes/pkg/generated/openapi".GetOpenAPIDefinitions // scheme = "k8s.io/client-go/kubernetes/scheme".Scheme func NewDefinitionsSchemaResolver(getDefinitions common.GetOpenAPIDefinitions, schemes ...*runtime.Scheme) *DefinitionsSchemaResolver { … } func (d *DefinitionsSchemaResolver) ResolveSchema(gvk schema.GroupVersionKind) (*spec.Schema, error) { … } func extensionsToGVKs(extensions spec.Extensions) []schema.GroupVersionKind { … }