MCPcopy Create free account

hub / github.com/ajv-validator/ajv / functions

Functions786 in github.com/ajv-validator/ajv

↓ 188 callersFunction_
(strs: TemplateStringsArray, ...args: CodeArg[])
lib/compile/codegen/code.ts:76
↓ 98 callersMethodcompile
(schema: AnySchema, _meta?: boolean)
lib/core.ts:387
↓ 84 callersMethodif
(condition: Code | boolean, thenBody?: Block, elseBody?: Block)
lib/compile/codegen/index.ts:566
↓ 70 callersFunctionvalidate
(/* value */)
spec/issues/181_allErrors_custom_keyword_skipped.spec.ts:19
↓ 56 callersMethodassign
(lhs: Code, rhs: SafeExpr, sideEffects?: boolean)
lib/compile/codegen/index.ts:534
↓ 37 callersMethodlet
(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean)
lib/compile/codegen/index.ts:524
↓ 36 callersFunctionstr
(strs: TemplateStringsArray, ...args: (CodeArg | string[])[])
lib/compile/codegen/code.ts:88
↓ 32 callersMethoderror
(...args: unknown[])
lib/core.ts:272
↓ 28 callersMethodname
(prefix: string)
lib/compile/codegen/scope.ts:74
↓ 28 callersFunctionnot
(x: Code | SafeExpr)
lib/compile/codegen/index.ts:826
↓ 28 callersMethodthrow
(error: Code)
lib/compile/codegen/index.ts:693
↓ 27 callersMethodaddKeyword
( kwdOrDef: string | KeywordDefinition, def?: KeywordDefinition // deprecated )
lib/core.ts:588
↓ 25 callersMethodsubschema
(appl: SubschemaArgs, valid: Name)
lib/compile/validate/index.ts:495
↓ 24 callersMethodaddSchema
( schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored key?: string, // Optio
lib/core.ts:470
↓ 24 callersMethodok
(cond: Code | boolean)
lib/compile/validate/index.ts:443
↓ 23 callersMethodadd
(lhs: Code, rhs: SafeExpr)
lib/compile/codegen/index.ts:539
↓ 23 callersFunctionalwaysValidSchema
(it: SchemaCxt, schema: AnySchema)
lib/compile/util.ts:14
↓ 23 callersMethodconst
(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean)
lib/compile/codegen/index.ts:519
↓ 21 callersMethodvalidate
( schemaKeyRef: AnySchema | string, // key, ref or schema object // eslint-disable-next-line @typescri
lib/core.ts:354
↓ 20 callersMethodcode
(c: Block | SafeExpr)
lib/compile/codegen/index.ts:544
↓ 19 callersMethodbreak
(label?: Code)
lib/compile/codegen/index.ts:661
↓ 18 callersFunctiongetProperty
(key: Code | string | number)
lib/compile/codegen/code.ts:155
↓ 18 callersMethodvar
(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean)
lib/compile/codegen/index.ts:529
↓ 17 callersMethodelse
()
lib/compile/codegen/index.ts:585
↓ 17 callersMethodsetParams
(obj: KeywordCxtParams, assign?: true)
lib/compile/validate/index.ts:447
↓ 16 callersMethodendIf
()
lib/compile/codegen/index.ts:590
↓ 16 callersMethodgetSchema
(keyRef: string)
lib/core.ts:530
↓ 16 callersMethodscopeValue
(prefixOrName: ValueScopeName | string, value: NameValue)
lib/compile/codegen/index.ts:485
↓ 13 callersFunctioncheckStrictMode
( it: SchemaCxt, msg: string, mode: boolean | "log" = it.opts.strictSchema )
lib/compile/util.ts:204
↓ 13 callersMethodelseIf
(condition: Code | boolean)
lib/compile/codegen/index.ts:580
↓ 13 callersFunctionor
(...args: Code[])
lib/compile/codegen/index.ts:840
↓ 11 callersFunctionnormalizeId
(id: string | undefined)
lib/compile/resolve.ts:82
↓ 11 callersMethodpass
(condition: Code, failAction?: () => void)
lib/compile/validate/index.ts:398
↓ 10 callersFunctionand
(...args: Code[])
lib/compile/codegen/index.ts:833
↓ 10 callersFunctiongetAjvInstances
( _Ajv: typeof AjvCore, options: Options, extraOpts: Options = {} )
spec/ajv_instances.ts:4
↓ 10 callersMethodrender
(opts: CGOptions)
lib/compile/codegen/index.ts:234
↓ 10 callersFunctionshouldBeError
( error, keyword, schemaPath, instancePath, message?: string, params?: Record<string,
spec/errors.spec.ts:1031
↓ 9 callersMethodforIn
( nameOrPrefix: Name | string, obj: Code, forBody: (item: Name) => void, varKind: Code = this.
lib/compile/codegen/index.ts:637
↓ 9 callersFunctionparseToken
(cxt: ParseCxt, tok: string)
lib/compile/jtd/parse.ts:373
↓ 9 callersFunctionshared
(root)
lib/refs/jtd-schema.ts:5
↓ 9 callersFunctionuseFunc
(gen: CodeGen, f: {code: string})
lib/compile/util.ts:173
↓ 8 callersMethodaddFormat
(name: string, format: Format)
lib/core.ts:648
↓ 8 callersMethodaddMetaSchema
( schema: AnySchemaObject, key?: string, // schema key _validateSchema = this.opts.validateSchema
lib/core.ts:496
↓ 8 callersMethodblock
(body?: Block, nodeCount?: number)
lib/compile/codegen/index.ts:698
↓ 8 callersFunctioncheckMetadata
({it, keyword}: KeywordCxt, metadata?: boolean)
lib/vocabularies/jtd/metadata.ts:18
↓ 8 callersMethodfail
(condition?: Code)
lib/compile/validate/index.ts:402
↓ 8 callersMethodfail$data
(condition: Code)
lib/compile/validate/index.ts:414
↓ 8 callersMethodget
()
lib/compile/codegen/scope.ts:129
↓ 8 callersMethodtoString
()
lib/compile/codegen/code.ts:19
↓ 8 callersMethodwarn
(...args: unknown[])
lib/core.ts:271
↓ 7 callersMethod_leafNode
(node: LeafNode)
lib/compile/codegen/index.ts:735
↓ 7 callersMethodforOf
( nameOrPrefix: Name | string, iterable: Code, forBody: (item: Name) => void, varKind: Code =
lib/compile/codegen/index.ts:618
↓ 7 callersMethodforRange
( nameOrPrefix: Name | string, from: SafeExpr, to: SafeExpr, forBody: (index: Name) => void,
lib/compile/codegen/index.ts:606
↓ 7 callersMethodparse
(uri: string)
lib/types/index.ts:241
↓ 7 callersMethodreturn
(value: Block | SafeExpr)
lib/compile/codegen/index.ts:666
↓ 7 callersFunctionshouldBeInvalid
(validate, data, numErrors = 1)
spec/errors.spec.ts:1026
↓ 7 callersFunctionshouldBeInvalid
(validate, data, numErrors = 1)
spec/keyword.spec.ts:1053
↓ 7 callersFunctionshouldBeValid
(validate, data)
spec/errors.spec.ts:1021
↓ 7 callersFunctionshouldBeValid
(validate, data)
spec/keyword.spec.ts:1048
↓ 7 callersMethodvalidateSchema
(schema: AnySchema, throwOrLogError?: boolean)
lib/core.ts:506
↓ 7 callersFunctionwithStandalone
(instances: AjvCore[])
spec/ajv_standalone.ts:5
↓ 6 callersFunctionaddNames
(names: UsedNames, from: UsedNames)
lib/compile/codegen/index.ts:782
↓ 6 callersMethodmergeEvaluated
(schemaCxt: SchemaCxt, toName?: typeof Name)
lib/compile/validate/index.ts:504
↓ 6 callersFunctionoptimizeExpr
(expr: SafeExpr, names: UsedNames, constants: Constants)
lib/compile/codegen/index.ts:792
↓ 6 callersMethodreset
()
lib/compile/validate/index.ts:438
↓ 6 callersMethodresolve
(base: string, path: string)
lib/types/index.ts:242
↓ 5 callersMethod_addSchema
( schema: AnySchema, meta?: boolean, baseId?: string, validateSchema = this.opts.validateSchem
lib/core.ts:698
↓ 5 callersMethod_blockNode
(node: StartBlockNode)
lib/compile/codegen/index.ts:740
↓ 5 callersMethod_endBlockNode
(N1: EndBlockNodeType, N2?: EndBlockNodeType)
lib/compile/codegen/index.ts:745
↓ 5 callersMethodaddVocabulary
(definitions: Vocabulary)
lib/core.ts:583
↓ 5 callersFunctionallSchemaProperties
(schemaMap?: SchemaMap)
lib/vocabularies/code.ts:65
↓ 5 callersMethodblock$data
(valid: Name, codeBlock: () => void, $dataValid: Code = nil)
lib/compile/validate/index.ts:452
↓ 5 callersMethodcompileParser
(schema: SchemaObject)
lib/jtd.ts:75
↓ 5 callersMethodcompileSerializer
(schema: SchemaObject)
lib/jtd.ts:66
↓ 5 callersFunctionisOwnProperty
(gen: CodeGen, data: Name, property: Name | string)
lib/vocabularies/code.ts:41
↓ 5 callersMethodlog
(...args: unknown[])
lib/core.ts:270
↓ 5 callersMethodoptimizeNames
(names: UsedNames, constants: Constants)
lib/compile/codegen/index.ts:258
↓ 5 callersFunctionparsingError
({gen, parseName}: ParseCxt, msg: Code)
lib/compile/jtd/parse.ts:407
↓ 5 callersFunctionpropertyInData
( gen: CodeGen, data: Name, property: Name | string, ownProperties?: boolean )
lib/vocabularies/code.ts:45
↓ 5 callersFunctionresolveUrl
(resolver: UriResolver, baseId: string, id: string)
lib/compile/resolve.ts:86
↓ 5 callersFunctionserializeCode
(cxt: SerializeCxt)
lib/compile/jtd/serialize.ts:80
↓ 5 callersFunctionstringify
(x: unknown)
lib/compile/codegen/code.ts:145
↓ 5 callersMethodtoName
(nameOrPrefix: Name | string)
lib/compile/codegen/scope.ts:70
↓ 5 callersFunctiontryParseToken
(cxt: ParseCxt, tok: string, fail: GenParse, success?: GenParse)
lib/compile/jtd/parse.ts:377
↓ 4 callersMethod_for
(node: For, forBody?: Block)
lib/compile/codegen/index.ts:594
↓ 4 callersFunctioncallRef
(cxt: KeywordCxt, v: Code, sch?: SchemaEnv, $async?: boolean)
lib/vocabularies/core/ref.ts:63
↓ 4 callersFunctioncheckDataTypes
( dataTypes: JSONType[], data: Name, strictNums?: boolean | "log", correct?: DataType )
lib/compile/validate/dataType.ts:178
↓ 4 callersMethodfor
(iteration: Code, forBody?: Block)
lib/compile/codegen/index.ts:601
↓ 4 callersMethodfunc
(name: Name, args: Code = nil, async?: boolean, funcBody?: Block)
lib/compile/codegen/index.ts:717
↓ 4 callersFunctiongetFullPath
(resolver: UriResolver, id = "", normalize?: boolean)
lib/compile/resolve.ts:70
↓ 4 callersFunctiongetStandalone
(_Ajv: typeof AjvCore, opts: Options = {})
spec/ajv_standalone.ts:14
↓ 4 callersFunctionjsonSlice
(len: number | Name)
lib/compile/jtd/parse.ts:397
↓ 4 callersMethodoptimize
(n = 1)
lib/compile/codegen/index.ts:728
↓ 4 callersFunctionparseCode
(cxt: ParseCxt)
lib/compile/jtd/parse.ts:106
↓ 4 callersFunctionparseString
(cxt: ParseCxt)
lib/compile/jtd/parse.ts:297
↓ 4 callersMethodresult
(condition: Code, successAction?: () => void, failAction?: () => void)
lib/compile/validate/index.ts:380
↓ 4 callersFunctionschemaHasRulesButRef
(schema: AnySchema, RULES: ValidationRules)
lib/compile/util.ts:40
↓ 4 callersFunctionschemaRefOrVal
( {topSchemaRef, schemaPath}: SchemaObjCxt, schema: unknown, keyword: string, $data?: string | false )
lib/compile/util.ts:46
↓ 4 callersMethodscopeRefs
(scopeName: Name)
lib/compile/codegen/index.ts:498
↓ 4 callersFunctiontypeErrorMessage
({parentSchema}: KeywordErrorCxt, t: string)
lib/vocabularies/jtd/error.ts:17
next →1–100 of 786, ranked by callers