// ToKubeOpenAPI converts a structural schema to go-openapi schema. It is faithful and roundtrippable. func (s *Structural) ToKubeOpenAPI() *spec.Schema { … } func (g *Generic) toKubeOpenAPI(ret *spec.Schema) { … } func (x *Extensions) toKubeOpenAPI(ret *spec.Schema) { … } func (x *ValidationExtensions) toKubeOpenAPI(ret *spec.Schema) { … } func (v *ValueValidation) toKubeOpenAPI(ret *spec.Schema) { … } func (vv *NestedValueValidation) toKubeOpenAPI() *spec.Schema { … }