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
↓ 188 callers
Function
_
(strs: TemplateStringsArray, ...args: CodeArg[])
lib/compile/codegen/code.ts:76
↓ 98 callers
Method
compile
(schema: AnySchema, _meta?: boolean)
lib/core.ts:387
↓ 84 callers
Method
if
(condition: Code | boolean, thenBody?: Block, elseBody?: Block)
lib/compile/codegen/index.ts:566
↓ 70 callers
Function
validate
(/* value */)
spec/issues/181_allErrors_custom_keyword_skipped.spec.ts:19
↓ 56 callers
Method
assign
(lhs: Code, rhs: SafeExpr, sideEffects?: boolean)
lib/compile/codegen/index.ts:534
↓ 37 callers
Method
let
(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean)
lib/compile/codegen/index.ts:524
↓ 36 callers
Function
str
(strs: TemplateStringsArray, ...args: (CodeArg | string[])[])
lib/compile/codegen/code.ts:88
↓ 32 callers
Method
error
(...args: unknown[])
lib/core.ts:272
↓ 28 callers
Method
name
(prefix: string)
lib/compile/codegen/scope.ts:74
↓ 28 callers
Function
not
(x: Code | SafeExpr)
lib/compile/codegen/index.ts:826
↓ 28 callers
Method
throw
(error: Code)
lib/compile/codegen/index.ts:693
↓ 27 callers
Method
addKeyword
( kwdOrDef: string | KeywordDefinition, def?: KeywordDefinition // deprecated )
lib/core.ts:588
↓ 25 callers
Method
subschema
(appl: SubschemaArgs, valid: Name)
lib/compile/validate/index.ts:495
↓ 24 callers
Method
addSchema
( schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored key?: string, // Optio
lib/core.ts:470
↓ 24 callers
Method
ok
(cond: Code | boolean)
lib/compile/validate/index.ts:443
↓ 23 callers
Method
add
(lhs: Code, rhs: SafeExpr)
lib/compile/codegen/index.ts:539
↓ 23 callers
Function
alwaysValidSchema
(it: SchemaCxt, schema: AnySchema)
lib/compile/util.ts:14
↓ 23 callers
Method
const
(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean)
lib/compile/codegen/index.ts:519
↓ 21 callers
Method
validate
( schemaKeyRef: AnySchema | string, // key, ref or schema object // eslint-disable-next-line @typescri
lib/core.ts:354
↓ 20 callers
Method
code
(c: Block | SafeExpr)
lib/compile/codegen/index.ts:544
↓ 19 callers
Method
break
(label?: Code)
lib/compile/codegen/index.ts:661
↓ 18 callers
Function
getProperty
(key: Code | string | number)
lib/compile/codegen/code.ts:155
↓ 18 callers
Method
var
(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean)
lib/compile/codegen/index.ts:529
↓ 17 callers
Method
else
()
lib/compile/codegen/index.ts:585
↓ 17 callers
Method
setParams
(obj: KeywordCxtParams, assign?: true)
lib/compile/validate/index.ts:447
↓ 16 callers
Method
endIf
()
lib/compile/codegen/index.ts:590
↓ 16 callers
Method
getSchema
(keyRef: string)
lib/core.ts:530
↓ 16 callers
Method
scopeValue
(prefixOrName: ValueScopeName | string, value: NameValue)
lib/compile/codegen/index.ts:485
↓ 13 callers
Function
checkStrictMode
( it: SchemaCxt, msg: string, mode: boolean | "log" = it.opts.strictSchema )
lib/compile/util.ts:204
↓ 13 callers
Method
elseIf
(condition: Code | boolean)
lib/compile/codegen/index.ts:580
↓ 13 callers
Function
or
(...args: Code[])
lib/compile/codegen/index.ts:840
↓ 11 callers
Function
normalizeId
(id: string | undefined)
lib/compile/resolve.ts:82
↓ 11 callers
Method
pass
(condition: Code, failAction?: () => void)
lib/compile/validate/index.ts:398
↓ 10 callers
Function
and
(...args: Code[])
lib/compile/codegen/index.ts:833
↓ 10 callers
Function
getAjvInstances
( _Ajv: typeof AjvCore, options: Options, extraOpts: Options = {} )
spec/ajv_instances.ts:4
↓ 10 callers
Method
render
(opts: CGOptions)
lib/compile/codegen/index.ts:234
↓ 10 callers
Function
shouldBeError
( error, keyword, schemaPath, instancePath, message?: string, params?: Record<string,
spec/errors.spec.ts:1031
↓ 9 callers
Method
forIn
( nameOrPrefix: Name | string, obj: Code, forBody: (item: Name) => void, varKind: Code = this.
lib/compile/codegen/index.ts:637
↓ 9 callers
Function
parseToken
(cxt: ParseCxt, tok: string)
lib/compile/jtd/parse.ts:373
↓ 9 callers
Function
shared
(root)
lib/refs/jtd-schema.ts:5
↓ 9 callers
Function
useFunc
(gen: CodeGen, f: {code: string})
lib/compile/util.ts:173
↓ 8 callers
Method
addFormat
(name: string, format: Format)
lib/core.ts:648
↓ 8 callers
Method
addMetaSchema
( schema: AnySchemaObject, key?: string, // schema key _validateSchema = this.opts.validateSchema
lib/core.ts:496
↓ 8 callers
Method
block
(body?: Block, nodeCount?: number)
lib/compile/codegen/index.ts:698
↓ 8 callers
Function
checkMetadata
({it, keyword}: KeywordCxt, metadata?: boolean)
lib/vocabularies/jtd/metadata.ts:18
↓ 8 callers
Method
fail
(condition?: Code)
lib/compile/validate/index.ts:402
↓ 8 callers
Method
fail$data
(condition: Code)
lib/compile/validate/index.ts:414
↓ 8 callers
Method
get
()
lib/compile/codegen/scope.ts:129
↓ 8 callers
Method
toString
()
lib/compile/codegen/code.ts:19
↓ 8 callers
Method
warn
(...args: unknown[])
lib/core.ts:271
↓ 7 callers
Method
_leafNode
(node: LeafNode)
lib/compile/codegen/index.ts:735
↓ 7 callers
Method
forOf
( nameOrPrefix: Name | string, iterable: Code, forBody: (item: Name) => void, varKind: Code =
lib/compile/codegen/index.ts:618
↓ 7 callers
Method
forRange
( nameOrPrefix: Name | string, from: SafeExpr, to: SafeExpr, forBody: (index: Name) => void,
lib/compile/codegen/index.ts:606
↓ 7 callers
Method
parse
(uri: string)
lib/types/index.ts:241
↓ 7 callers
Method
return
(value: Block | SafeExpr)
lib/compile/codegen/index.ts:666
↓ 7 callers
Function
shouldBeInvalid
(validate, data, numErrors = 1)
spec/errors.spec.ts:1026
↓ 7 callers
Function
shouldBeInvalid
(validate, data, numErrors = 1)
spec/keyword.spec.ts:1053
↓ 7 callers
Function
shouldBeValid
(validate, data)
spec/errors.spec.ts:1021
↓ 7 callers
Function
shouldBeValid
(validate, data)
spec/keyword.spec.ts:1048
↓ 7 callers
Method
validateSchema
(schema: AnySchema, throwOrLogError?: boolean)
lib/core.ts:506
↓ 7 callers
Function
withStandalone
(instances: AjvCore[])
spec/ajv_standalone.ts:5
↓ 6 callers
Function
addNames
(names: UsedNames, from: UsedNames)
lib/compile/codegen/index.ts:782
↓ 6 callers
Method
mergeEvaluated
(schemaCxt: SchemaCxt, toName?: typeof Name)
lib/compile/validate/index.ts:504
↓ 6 callers
Function
optimizeExpr
(expr: SafeExpr, names: UsedNames, constants: Constants)
lib/compile/codegen/index.ts:792
↓ 6 callers
Method
reset
()
lib/compile/validate/index.ts:438
↓ 6 callers
Method
resolve
(base: string, path: string)
lib/types/index.ts:242
↓ 5 callers
Method
_addSchema
( schema: AnySchema, meta?: boolean, baseId?: string, validateSchema = this.opts.validateSchem
lib/core.ts:698
↓ 5 callers
Method
_blockNode
(node: StartBlockNode)
lib/compile/codegen/index.ts:740
↓ 5 callers
Method
_endBlockNode
(N1: EndBlockNodeType, N2?: EndBlockNodeType)
lib/compile/codegen/index.ts:745
↓ 5 callers
Method
addVocabulary
(definitions: Vocabulary)
lib/core.ts:583
↓ 5 callers
Function
allSchemaProperties
(schemaMap?: SchemaMap)
lib/vocabularies/code.ts:65
↓ 5 callers
Method
block$data
(valid: Name, codeBlock: () => void, $dataValid: Code = nil)
lib/compile/validate/index.ts:452
↓ 5 callers
Method
compileParser
(schema: SchemaObject)
lib/jtd.ts:75
↓ 5 callers
Method
compileSerializer
(schema: SchemaObject)
lib/jtd.ts:66
↓ 5 callers
Function
isOwnProperty
(gen: CodeGen, data: Name, property: Name | string)
lib/vocabularies/code.ts:41
↓ 5 callers
Method
log
(...args: unknown[])
lib/core.ts:270
↓ 5 callers
Method
optimizeNames
(names: UsedNames, constants: Constants)
lib/compile/codegen/index.ts:258
↓ 5 callers
Function
parsingError
({gen, parseName}: ParseCxt, msg: Code)
lib/compile/jtd/parse.ts:407
↓ 5 callers
Function
propertyInData
( gen: CodeGen, data: Name, property: Name | string, ownProperties?: boolean )
lib/vocabularies/code.ts:45
↓ 5 callers
Function
resolveUrl
(resolver: UriResolver, baseId: string, id: string)
lib/compile/resolve.ts:86
↓ 5 callers
Function
serializeCode
(cxt: SerializeCxt)
lib/compile/jtd/serialize.ts:80
↓ 5 callers
Function
stringify
(x: unknown)
lib/compile/codegen/code.ts:145
↓ 5 callers
Method
toName
(nameOrPrefix: Name | string)
lib/compile/codegen/scope.ts:70
↓ 5 callers
Function
tryParseToken
(cxt: ParseCxt, tok: string, fail: GenParse, success?: GenParse)
lib/compile/jtd/parse.ts:377
↓ 4 callers
Method
_for
(node: For, forBody?: Block)
lib/compile/codegen/index.ts:594
↓ 4 callers
Function
callRef
(cxt: KeywordCxt, v: Code, sch?: SchemaEnv, $async?: boolean)
lib/vocabularies/core/ref.ts:63
↓ 4 callers
Function
checkDataTypes
( dataTypes: JSONType[], data: Name, strictNums?: boolean | "log", correct?: DataType )
lib/compile/validate/dataType.ts:178
↓ 4 callers
Method
for
(iteration: Code, forBody?: Block)
lib/compile/codegen/index.ts:601
↓ 4 callers
Method
func
(name: Name, args: Code = nil, async?: boolean, funcBody?: Block)
lib/compile/codegen/index.ts:717
↓ 4 callers
Function
getFullPath
(resolver: UriResolver, id = "", normalize?: boolean)
lib/compile/resolve.ts:70
↓ 4 callers
Function
getStandalone
(_Ajv: typeof AjvCore, opts: Options = {})
spec/ajv_standalone.ts:14
↓ 4 callers
Function
jsonSlice
(len: number | Name)
lib/compile/jtd/parse.ts:397
↓ 4 callers
Method
optimize
(n = 1)
lib/compile/codegen/index.ts:728
↓ 4 callers
Function
parseCode
(cxt: ParseCxt)
lib/compile/jtd/parse.ts:106
↓ 4 callers
Function
parseString
(cxt: ParseCxt)
lib/compile/jtd/parse.ts:297
↓ 4 callers
Method
result
(condition: Code, successAction?: () => void, failAction?: () => void)
lib/compile/validate/index.ts:380
↓ 4 callers
Function
schemaHasRulesButRef
(schema: AnySchema, RULES: ValidationRules)
lib/compile/util.ts:40
↓ 4 callers
Function
schemaRefOrVal
( {topSchemaRef, schemaPath}: SchemaObjCxt, schema: unknown, keyword: string, $data?: string | false )
lib/compile/util.ts:46
↓ 4 callers
Method
scopeRefs
(scopeName: Name)
lib/compile/codegen/index.ts:498
↓ 4 callers
Function
typeErrorMessage
({parentSchema}: KeywordErrorCxt, t: string)
lib/vocabularies/jtd/error.ts:17
next →
1–100 of 786, ranked by callers