File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -660,6 +660,10 @@ func (m XValidation) ApplyToSchema(schema *apiext.JSONSchemaProps) error {
660
660
return nil
661
661
}
662
662
663
+ func (XValidation ) ApplyPriority () ApplyPriority {
664
+ return ApplyPriorityDefault
665
+ }
666
+
663
667
func (fields AtMostOneOf ) ApplyToSchema (schema * apiext.JSONSchemaProps ) error {
664
668
if len (fields ) == 0 {
665
669
return nil
@@ -672,9 +676,9 @@ func (fields AtMostOneOf) ApplyToSchema(schema *apiext.JSONSchemaProps) error {
672
676
return xvalidation .ApplyToSchema (schema )
673
677
}
674
678
675
- func (_ AtMostOneOf ) ApplyPriority () ApplyPriority {
679
+ func (AtMostOneOf ) ApplyPriority () ApplyPriority {
676
680
// explicitly go after XValidation markers so that the ordering is deterministic
677
- return ApplyPriorityDefault + 1
681
+ return XValidation {}. ApplyPriority () + 1
678
682
}
679
683
680
684
func (fields ExactlyOneOf ) ApplyToSchema (schema * apiext.JSONSchemaProps ) error {
@@ -689,9 +693,9 @@ func (fields ExactlyOneOf) ApplyToSchema(schema *apiext.JSONSchemaProps) error {
689
693
return xvalidation .ApplyToSchema (schema )
690
694
}
691
695
692
- func (_ ExactlyOneOf ) ApplyPriority () ApplyPriority {
696
+ func (ExactlyOneOf ) ApplyPriority () ApplyPriority {
693
697
// explicitly go after XValidation markers so that the ordering is deterministic
694
- return ApplyPriorityDefault + 1
698
+ return XValidation {}. ApplyPriority () + 1
695
699
}
696
700
697
701
// fieldsToOneOfCelRuleStr converts a slice of field names to a string representation
You can’t perform that action at this time.
0 commit comments