Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

TypedValidationFunction

TypedValidationFunction: (rec: TypedDataRecord, index: number, fields: Array<FieldDefinition>) => Array<SchemaValidationError>

Type declaration

ValidationFunction

ValidationFunction: (rec: DataRecord, index: number, fields: Array<FieldDefinition>) => Array<SchemaValidationError>

Type declaration

Variables

Const ctx

ctx: Context = vm.createContext()

Functions

Const buildError

Const getScript

  • getScript(scriptString: string): Script

Const getValidFields

Const isInvalidEnumValue

  • isInvalidEnumValue(codeList: CodeListRestriction, value: string | boolean | number | undefined): boolean

Const isInvalidFieldType

  • isInvalidFieldType(valueType: ValueType, value: string): boolean

Const isInvalidRegexValue

  • isInvalidRegexValue(regex: string, value: string): boolean

Const isOutOfRange

Const isRequiredMissing

Const runValidationPipeline

Const validateEnum

Const validateFieldNames

Const validateNonArrayFields

Const validateRange

Const validateRegex

Const validateRequiredFields

Const validateScript

Const validateValueTypes

Const validateWithScript

Legend

  • Property
  • Method

Generated using TypeDoc