You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Options for enforcing additional checks
All these options are false by default in 'default' and 'lax/'spec' modes and true by default in 'strong' mode.
requireSchema — refuse to use schemas with missing $schema.
requireValidation — refuse to use schemas which do not perform validation of all items or properties.
requireStringValidation — refuse to use schemas which do not perform validation of all string properties against a format, pattern, or a contentSchema.
complexityChecks — refuse to use schemas that might be missing required checks to avoid potential DoS, e.g. require maxLength on complex regexps and maxItems on complex uniqueItems. Note that it will pass if those are present but have a very high value, the only intent is to prevent a mistake when those checks are missed. If they are present, it is assumed that the shema author chose an appropriate value corresponding to the regex complexity.
forbidNoopValues — refuse to compile schemas with certain noop keywords that make no sense.
Currently, that is only $recursiveAnchor: false.
This option is overridable even in 'strong' mode.
The text was updated successfully, but these errors were encountered:
The checks below come from the
@exodus/schemasafe
docs.The text was updated successfully, but these errors were encountered: