Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ajv-validator/ajv
/ functions
Functions
786 in github.com/ajv-validator/ajv
⨍
Functions
786
◇
Types & classes
146
↓ 4 callers
Function
typeErrorParams
({parentSchema}: KeywordErrorCxt, t: string)
lib/vocabularies/jtd/error.ts:21
↓ 4 callers
Function
validateRangeSchema
(schema, parentSchema)
spec/keyword.spec.ts:1031
↓ 4 callers
Method
value
(nameOrPrefix: ValueScopeName | string, value: NameValue)
lib/compile/codegen/scope.ts:137
↓ 3 callers
Method
$dataMetaSchema
(metaSchema: AnySchemaObject, keywordsJsonPointers: string[])
lib/core.ts:664
↓ 3 callers
Function
_addKeyword
(keyword, dataType)
spec/keyword.spec.ts:1163
↓ 3 callers
Method
_compileSchemaEnv
(sch: SchemaEnv)
lib/core.ts:735
↓ 3 callers
Method
_def
( varKind: Name, nameOrPrefix: Name | string, rhs?: SafeExpr, constant?: boolean )
lib/compile/codegen/index.ts:506
↓ 3 callers
Function
_testRequired
(schema, schemaPathPrefix = "#", extraErrors = 0)
spec/errors.spec.ts:467
↓ 3 callers
Function
addCodeArg
(code: CodeItem[], arg: CodeArg | string[])
lib/compile/codegen/code.ts:100
↓ 3 callers
Function
addComma
({gen}: SerializeCxt, first?: Name)
lib/compile/jtd/serialize.ts:256
↓ 3 callers
Function
addExprNames
(names: UsedNames, from: SafeExpr)
lib/compile/codegen/index.ts:787
↓ 3 callers
Function
assignValid
(_await: Code = def.async ? _`await ` : nil)
lib/compile/validate/keyword.ts:82
↓ 3 callers
Function
callValidateCode
( {schemaCode, data, it: {gen, topSchemaRef, schemaPath, errorPath}, it}: KeywordCxt, func: Code, contex
lib/vocabularies/code.ts:75
↓ 3 callers
Function
checkNullable
( {gen, data, parentSchema}: KeywordCxt, cond: Code = nil )
lib/vocabularies/jtd/nullable.ts:4
↓ 3 callers
Function
checkNullableObject
(cxt: KeywordCxt, cond: Code)
lib/vocabularies/jtd/nullable.ts:18
↓ 3 callers
Method
compileAsync
( schema: AnySchemaObject, meta?: boolean )
lib/core.ts:409
↓ 3 callers
Function
eachItem
(xs: T | T[], f: (x: T) => void)
lib/compile/util.ts:76
↓ 3 callers
Method
errorsText
( errors: ErrorObject[] | null | undefined = this.errors, // optional array of validation errors {sepa
lib/core.ts:654
↓ 3 callers
Method
failResult
(condition: Code, successAction?: () => void, failAction?: () => void)
lib/compile/validate/index.ts:384
↓ 3 callers
Function
getAjvAllInstances
(options: Options, extraOpts: Options = {})
spec/ajv_all_instances.ts:7
↓ 3 callers
Function
getErrorPath
( dataProp: Name | string | number, dataPropType?: Type, jsPropertySyntax?: boolean )
lib/compile/util.ts:185
↓ 3 callers
Function
getJSONTypes
(ts: unknown | unknown[])
lib/compile/validate/dataType.ts:34
↓ 3 callers
Function
getValidate
(cxt: KeywordCxt, sch: SchemaEnv)
lib/vocabularies/core/ref.ts:56
↓ 3 callers
Function
hasRef
(schema: AnySchemaObject)
lib/vocabularies/jtd/ref.ts:68
↓ 3 callers
Function
jsonSyntaxError
(cxt: ParseCxt)
lib/compile/jtd/parse.ts:403
↓ 3 callers
Method
mergeValidEvaluated
(schemaCxt: SchemaCxt, valid: Name)
lib/compile/validate/index.ts:515
↓ 3 callers
Method
name
(prefix: string)
lib/compile/codegen/index.ts:475
↓ 3 callers
Function
noPropertyInData
( gen: CodeGen, data: Name, property: Name | string, ownProperties?: boolean )
lib/vocabularies/code.ts:55
↓ 3 callers
Method
object
(...keyValues: [Name | string, SafeExpr | string][])
lib/compile/codegen/index.ts:551
↓ 3 callers
Method
optimizeNodes
()
lib/compile/codegen/index.ts:240
↓ 3 callers
Function
parseEmpty
(cxt: ParseCxt)
lib/compile/jtd/parse.ts:358
↓ 3 callers
Function
parseItems
(cxt: ParseCxt, endToken: string, block: () => void)
lib/compile/jtd/parse.ts:145
↓ 3 callers
Function
parseWith
(cxt: ParseCxt, parseFunc: {code: string}, args?: SafeExpr)
lib/compile/jtd/parse.ts:362
↓ 3 callers
Function
reportError
( cxt: KeywordErrorCxt, error: KeywordErrorDefinition = keywordError, errorPaths?: ErrorPaths, overrid
lib/compile/errors.ts:25
↓ 3 callers
Function
reportTypeError
(it: SchemaObjCxt)
lib/compile/validate/dataType.ts:211
↓ 3 callers
Function
safeStringify
(x: unknown)
lib/compile/codegen/code.ts:149
↓ 3 callers
Method
scopeName
(prefix: string)
lib/compile/codegen/index.ts:480
↓ 3 callers
Function
serializeString
({gen, data}: SerializeCxt)
lib/compile/jtd/serialize.ts:227
↓ 3 callers
Function
shouldBeInvalid
(p, expectedMessages?: string[])
spec/async_validate.spec.ts:406
↓ 3 callers
Function
shouldBeValid
(p, data)
spec/async_validate.spec.ts:401
↓ 3 callers
Function
shouldUseRule
(schema: AnySchemaObject, rule: Rule)
lib/compile/validate/applicability.ts:17
↓ 3 callers
Function
skipWhitespace
({gen, char: c}: ParseCxt)
lib/compile/jtd/parse.ts:391
↓ 3 callers
Function
standaloneCode
( ajv: AjvCore, refsOrFunc?: {[K in string]?: string} | AnyValidateFunction )
lib/standalone/index.ts:7
↓ 3 callers
Function
strConcat
(c1: Code, c2: Code)
lib/compile/codegen/code.ts:134
↓ 3 callers
Function
strictTypesError
(it: SchemaObjCxt, msg: string)
lib/compile/validate/index.ts:328
↓ 3 callers
Function
toHash
(arr: T[])
lib/compile/util.ts:8
↓ 3 callers
Method
toString
()
lib/compile/codegen/index.ts:470
↓ 3 callers
Method
try
(tryBody: Block, catchCode?: (e: Name) => void, finallyCode?: Block)
lib/compile/codegen/index.ts:675
↓ 3 callers
Function
usePattern
({gen, it: {opts}}: KeywordCxt, pattern: string)
lib/vocabularies/code.ts:95
↓ 3 callers
Function
validateArray
(cxt: KeywordCxt)
lib/vocabularies/code.ts:107
↓ 3 callers
Function
validateCode
(usedValues: UsedScopeValues, s?: SourceCode)
lib/standalone/index.ts:59
↓ 2 callers
Method
_checkUnique
(id: string)
lib/core.ts:729
↓ 2 callers
Method
_elseNode
(node: If | Else)
lib/compile/codegen/index.ts:754
↓ 2 callers
Function
_getFullPath
(resolver: UriResolver, p: URIComponent)
lib/compile/resolve.ts:76
↓ 2 callers
Method
_newName
(prefix: string)
lib/compile/codegen/scope.ts:78
↓ 2 callers
Method
_reduceValues
( values: ScopeValues | ScopeValueSets, valueCode: (n: ValueScopeName) => Code | undefined, usedVa
lib/compile/codegen/scope.ts:187
↓ 2 callers
Function
addError
(gen: CodeGen, errObj: Code)
lib/compile/errors.ts:90
↓ 2 callers
Function
addErrorsFrom
(source: Code)
lib/vocabularies/core/ref.ts:96
↓ 2 callers
Function
addEvaluatedFrom
(source: Code)
lib/vocabularies/core/ref.ts:102
↓ 2 callers
Function
ambiguos
(ref: string)
lib/compile/resolve.ts:146
↓ 2 callers
Function
check
(IDs: number[])
spec/async_schemas.spec.ts:76
↓ 2 callers
Function
check
(IDs)
spec/async_validate.spec.ts:157
↓ 2 callers
Function
checkDataType
( dataType: JSONType, data: Name, strictNums?: boolean | "log", correct = DataType.Correct )
lib/compile/validate/dataType.ts:145
↓ 2 callers
Function
checkKeywords
(it: SchemaObjCxt)
lib/compile/validate/index.ts:152
↓ 2 callers
Function
checkMissingProp
( {gen, data, it: {opts}}: KeywordCxt, properties: string[], missing: Name )
lib/vocabularies/code.ts:16
↓ 2 callers
Function
checkNotValid
(p)
spec/async_validate.spec.ts:422
↓ 2 callers
Function
checkReportMissingProp
(cxt: KeywordCxt, prop: string)
lib/vocabularies/code.ts:8
↓ 2 callers
Function
checkUnknownRules
(it: SchemaCxt, schema: AnySchema = it.schema)
lib/compile/util.ts:21
↓ 2 callers
Function
commentKeyword
({gen, schemaEnv, schema, errSchemaPath, opts}: SchemaObjCxt)
lib/compile/validate/index.ts:187
↓ 2 callers
Function
dynamicAnchor
(cxt: KeywordCxt, anchor: string)
lib/vocabularies/dynamic/dynamicAnchor.ts:14
↓ 2 callers
Function
dynamicRef
(cxt: KeywordCxt, ref: string)
lib/vocabularies/dynamic/dynamicRef.ts:13
↓ 2 callers
Method
emptyStr
()
lib/compile/codegen/code.ts:23
↓ 2 callers
Method
endBlock
(nodeCount?: number)
lib/compile/codegen/index.ts:705
↓ 2 callers
Method
endFor
()
lib/compile/codegen/index.ts:651
↓ 2 callers
Method
endFunc
()
lib/compile/codegen/index.ts:724
↓ 2 callers
Method
error
(append?: boolean, errorParams?: KeywordCxtParams, errorPaths?: ErrorPaths)
lib/compile/validate/index.ts:420
↓ 2 callers
Function
errorMessage
()
lib/runtime/parseJson.ts:88
↓ 2 callers
Function
errorObjectCode
( cxt: KeywordErrorCxt, error: KeywordErrorDefinition, errorPaths?: ErrorPaths )
lib/compile/errors.ts:120
↓ 2 callers
Function
escapeJsonPointer
(str: string | number)
lib/compile/util.ts:67
↓ 2 callers
Function
falseSchemaError
(it: SchemaCxt, overrideAllErrors?: boolean)
lib/compile/validate/boolSchema.ts:33
↓ 2 callers
Function
getEql
()
lib/vocabularies/validation/enum.ts:24
↓ 2 callers
Function
getLogger
(output)
spec/options/strict.spec.ts:428
↓ 2 callers
Function
getSchemaTypes
(schema: AnySchemaObject)
lib/compile/validate/dataType.ts:19
↓ 2 callers
Method
getStandalone
(v: AnyValidateFunction<T>)
lib/standalone/instance.ts:23
↓ 2 callers
Function
hasPropFunc
(gen: CodeGen)
lib/vocabularies/code.ts:33
↓ 2 callers
Function
includesType
(ts: JSONType[], t: JSONType)
lib/compile/validate/index.ts:315
↓ 2 callers
Method
invalid$data
()
lib/compile/validate/index.ts:472
↓ 2 callers
Function
isSchemaObj
(it: SchemaCxt)
lib/compile/validate/index.ts:137
↓ 2 callers
Function
keywordCode
( it: SchemaObjCxt, keyword: string, def: AddedKeywordDefinition, ruleType?: JSONType )
lib/compile/validate/index.ts:524
↓ 2 callers
Method
label
(label: Name)
lib/compile/codegen/index.ts:656
↓ 2 callers
Function
par
(x: Code)
lib/compile/codegen/index.ts:850
↓ 2 callers
Function
params
(missing)
spec/errors.spec.ts:455
↓ 2 callers
Function
parsePropertyValue
(cxt: ParseCxt, key: Name, schema: SchemaObject)
lib/compile/jtd/parse.ts:251
↓ 2 callers
Function
parseSchemaProperties
(cxt: ParseCxt, discriminator?: string)
lib/compile/jtd/parse.ts:211
↓ 2 callers
Function
partialParse
(cxt: ParseCxt, parseFunc: Name, args?: SafeExpr)
lib/compile/jtd/parse.ts:366
↓ 2 callers
Method
removeSchema
(schemaKeyRef?: AnySchema | string | RegExp)
lib/core.ts:547
↓ 2 callers
Function
repeat
(func)
spec/async_validate.spec.ts:434
↓ 2 callers
Function
reportMissingProp
(cxt: KeywordCxt, missing: Name)
lib/vocabularies/code.ts:28
↓ 2 callers
Function
requiredMsg
(prop: string)
spec/errors.spec.ts:511
↓ 2 callers
Function
returnErrors
(it: SchemaCxt, errs: Code)
lib/compile/errors.ts:100
← previous
next →
101–200 of 786, ranked by callers