Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ValidationConfig

ValidationConfig represents options you can pass to validate.

Hierarchy

  • ValidationConfig

Index

Properties

Properties

maxDepth

maxDepth: number

maxDepth is the maximum number of refs to recursively follow before validate throws MaxDepthExceededError.

If maxDepth is zero, then no maximum depth will be enforced. validate will recursively follow refs indefinitely, potentially causing a stack overflow.

By default, maxDepth is zero.

maxErrors

maxErrors: number

maxErrors is the maximum number of errors to return from validate.

If maxErrors is positive, validate may return fewer errors than maxErrors, but it will never return more than maxErrors.

If maxErrors is zero, validate will return all validation errors.

By default, maxErrors is zero.

Generated using TypeDoc