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 {
660660 return nil
661661}
662662
663+ func (XValidation ) ApplyPriority () ApplyPriority {
664+ return ApplyPriorityDefault
665+ }
666+
663667func (fields AtMostOneOf ) ApplyToSchema (schema * apiext.JSONSchemaProps ) error {
664668 if len (fields ) == 0 {
665669 return nil
@@ -672,9 +676,9 @@ func (fields AtMostOneOf) ApplyToSchema(schema *apiext.JSONSchemaProps) error {
672676 return xvalidation .ApplyToSchema (schema )
673677}
674678
675- func (_ AtMostOneOf ) ApplyPriority () ApplyPriority {
679+ func (AtMostOneOf ) ApplyPriority () ApplyPriority {
676680 // explicitly go after XValidation markers so that the ordering is deterministic
677- return ApplyPriorityDefault + 1
681+ return XValidation {}. ApplyPriority () + 1
678682}
679683
680684func (fields ExactlyOneOf ) ApplyToSchema (schema * apiext.JSONSchemaProps ) error {
@@ -689,9 +693,9 @@ func (fields ExactlyOneOf) ApplyToSchema(schema *apiext.JSONSchemaProps) error {
689693 return xvalidation .ApplyToSchema (schema )
690694}
691695
692- func (_ ExactlyOneOf ) ApplyPriority () ApplyPriority {
696+ func (ExactlyOneOf ) ApplyPriority () ApplyPriority {
693697 // explicitly go after XValidation markers so that the ordering is deterministic
694- return ApplyPriorityDefault + 1
698+ return XValidation {}. ApplyPriority () + 1
695699}
696700
697701// fieldsToOneOfCelRuleStr converts a slice of field names to a string representation
You can’t perform that action at this time.
0 commit comments