// Combine combines the DefinitionsSchemaResolver with a secondary schema resolver. // The resulting schema resolver uses the DefinitionsSchemaResolver for a GVK that DefinitionsSchemaResolver knows, // and the secondary otherwise. func (d *DefinitionsSchemaResolver) Combine(secondary SchemaResolver) SchemaResolver { … } type combinedSchemaResolver … // ResolveSchema takes a GroupVersionKind (GVK) and returns the OpenAPI schema // identified by the GVK. // If the DefinitionsSchemaResolver knows the gvk, the DefinitionsSchemaResolver handles the resolution, // otherwise, the secondary does. func (r *combinedSchemaResolver) ResolveSchema(gvk schema.GroupVersionKind) (*spec.Schema, error) { … }