code: func (v *specStandardValidatorV3) validate(schema *apiextensions.JSONSchemaProps, fldPath *field.Path) field.ErrorList {
  	allErrs := field.ErrorList{}
  
  	if schema == nil {
  		return allErrs
  	}
  
  	if schema.Default != nil {
  		allErrs = append(allErrs, field.Forbidden(fldPath.Child("default"), "default is not supported"))
  	}
  
  	if schema.ID != "" {
  		allErrs = append(allErrs, field.Forbidden(fldPath.Child("id"), "id is not supported"))
  	}
  
  	if schema.AdditionalItems != nil {
  		allErrs = append(allErrs, field.Forbidden(fldPath.Child("additionalItems"), "additionalItems is not supported"))
  	}
  
  	if len(schema.PatternProperties) != 0 {
  		allErrs = append(allErrs, field.Forbidden(fldPath.Child("patternProperties"), "patternProperties is not supported"))
  	}
  
  	if len(schema.Definitions) != 0 {
  		allErrs = append(allErrs, field.Forbidden(fldPath.Child("definitions"), "definitions is not supported"))
  	}
  
  	if schema.Dependencies != nil {
  		allErrs = append(allErrs, field.Forbidden(fldPath.Child("dependencies"), "dependencies is not supported"))
  	}
  
  	if schema.Ref != nil {
  		allErrs = append(allErrs, field.Forbidden(fldPath.Child("$ref"), "$ref is not supported"))
  	}
  
  	if schema.Type == "null" {
  		allErrs = append(allErrs, field.Forbidden(fldPath.Child("type"), "type cannot be set to null, use nullable as an alternative"))
  	}
  
  	if schema.Items != nil && len(schema.Items.JSONSchemas) != 0 {
  		allErrs = append(allErrs, field.Forbidden(fldPath.Child("items"), "items must be a schema object and not an array"))
  	}
  
  	return allErrs
  }
docs: // validate validates against OpenAPI Schema v3.