Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StripValueValidations (0.28 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/skeleton.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package schema
    
    // StripValueValidations returns a copy without value validations.
    func (s *Structural) StripValueValidations() *Structural {
    	s = s.DeepCopy()
    	v := Visitor{
    		Structural: func(s *Structural) bool {
    			changed := false
    			if s.ValueValidation != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 14 01:06:36 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go

    					// This adds ValueValidation fields (anyOf, allOf) which may be stripped below if opts.StripValueValidation is true
    					schema = schema.Unfold()
    
    					if opts.StripValueValidation {
    						schema = schema.StripValueValidations()
    					}
    					if opts.StripNullable {
    						schema = schema.StripNullable()
    					}
    				}
    			}
    		}
    	}
    
    	// TODO(roycaihw): remove the WebService templating below. The following logic
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 22.8K bytes
    - Viewed (0)
Back to top