Represents the possible values of a schema type's validation field.
If the schema has not been run through inferFromSchema from
sanity/validation then value could be a function.
inferFromSchema mutates the schema and converts this value to an array of
Rule instances, except for context-aware validation (a function declaring a
context parameter), which stays a function so it can be re-evaluated against
the value being validated.
Represents the possible values of a schema type's
validationfield.If the schema has not been run through
inferFromSchemafromsanity/validationthen value could be a function.inferFromSchemamutates the schema and converts this value to an array ofRuleinstances, except for context-aware validation (a function declaring acontextparameter), which stays a function so it can be re-evaluated against the value being validated.