type fallbackQueryParamVerifier … var _ … // NewFallbackQueryParamVerifier returns a new Verifier which will invoke the // initial/primary Verifier. If the primary Verifier is "NotFound", then the // secondary Verifier is invoked as a fallback. func NewFallbackQueryParamVerifier(primary Verifier, secondary Verifier) Verifier { … } // HasSupport returns an error if the passed GVK does not support the // query param (fieldValidation), as determined by the primary and // secondary OpenAPI endpoints. The primary endoint is checked first, // but if there is an error retrieving the OpenAPI V3 document, the // secondary attempts to determine support. If the GVK supports the query param, // nil is returned. func (f *fallbackQueryParamVerifier) HasSupport(gvk schema.GroupVersionKind) error { … }