Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Options

Index

Properties

$data?: boolean
addUsedSchema?: boolean
allErrors?: boolean
async?: string | boolean
cache?: object
coerceTypes?: boolean | "array"
errorDataPath?: string
extendRefs?: true | "ignore" | "fail"
format?: string | false
formats?: object
inlineRefs?: number | boolean
jsonPointers?: boolean
keywords?: object
logger?: false | CustomLogger
loopRequired?: number
messages?: boolean
meta?: boolean | object
missingRefs?: true | "ignore" | "fail"
multipleOfPrecision?: number | boolean
nullable?: boolean
ownProperties?: boolean
passContext?: boolean
removeAdditional?: boolean | "all" | "failing"
schemaId?: "auto" | "id" | "$id"
schemas?: object | object[]
serialize?: false | ((schema: boolean | object) => any)
sourceCode?: boolean
strictDefaults?: boolean | "log"
strictKeywords?: boolean | "log"
strictNumbers?: boolean
transpile?: string | ((code: string) => string)
unicode?: boolean
uniqueItems?: boolean
unknownFormats?: true | string[] | "ignore"
useDefaults?: boolean | "empty" | "shared"
validateSchema?: boolean | "log"
verbose?: boolean

Methods

  • loadSchema(uri: string, cb?: (err: Error, schema: object) => void): PromiseLike<boolean | object>
  • Parameters

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

          • err: Error
          • schema: object

          Returns void

    Returns PromiseLike<boolean | object>

  • processCode(code: string, schema: object): string
  • Parameters

    • code: string
    • schema: object

    Returns string