Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ContainerValidatorOptions

Hierarchy

  • Options
  • Options
    • ContainerValidatorOptions

Index

Properties

Optional $data

$data: boolean

Optional addUsedSchema

addUsedSchema: boolean

Optional allErrors

allErrors: boolean

Optional async

async: boolean | string

Optional cache

cache: object

Optional coerceTypes

coerceTypes: boolean | "array"

Optional errorDataPath

errorDataPath: string

Optional extendRefs

extendRefs: true | "ignore" | "fail"

Optional format

format: string

Optional formats

formats: object

Optional inlineRefs

inlineRefs: boolean | number

Optional jsonPointers

jsonPointers: boolean

Optional keywords

keywords: object

Type declaration

  • [key: string]: any

Optional loadSchema

loadSchema: function

Type declaration

    • (uri: string, cb?: function): PromiseLike<object | boolean>
    • Parameters

      • uri: string
      • Optional cb: function
          • (err: Error, schema: object): void
          • Parameters

            • err: Error
            • schema: object

            Returns void

      Returns PromiseLike<object | boolean>

Optional logger

logger: CustomLogger | false

Optional loopRequired

loopRequired: number

Optional messages

messages: boolean

Optional meta

meta: boolean | object

Optional missingRefs

missingRefs: true | "ignore" | "fail"

Optional multipleOfPrecision

multipleOfPrecision: boolean | number

Optional nullable

nullable: boolean

Optional ownProperties

ownProperties: boolean

Optional passContext

passContext: boolean

Optional processCode

processCode: function

Type declaration

    • (code: string): string
    • Parameters

      • code: string

      Returns string

Optional removeAdditional

removeAdditional: boolean | "all" | "failing"

Optional schemaId

schemaId: "$id" | "id" | "auto"

Optional schemas

schemas: Array<object> | object

Optional serialize

serialize: function | false

Optional sourceCode

sourceCode: boolean

Optional strictDefaults

strictDefaults: boolean | "log"

Optional transpile

transpile: string | function

Optional unicode

unicode: boolean

Optional uniqueItems

uniqueItems: boolean

Optional unknownFormats

unknownFormats: true | string[] | "ignore"

Optional useDefaults

useDefaults: boolean | "shared"

Optional validateSchema

validateSchema: boolean | "log"

Optional verbose

verbose: boolean