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
↓ 2 callers
Function
schemaCxtHasRules
({schema, self}: SchemaCxt)
lib/compile/validate/index.ts:131
↓ 2 callers
Function
schemaOrData
(schema: AnySchema)
lib/core.ts:889
↓ 2 callers
Method
scopeCode
()
lib/compile/codegen/index.ts:502
↓ 2 callers
Function
serializeKeyValue
(cxt: SerializeCxt, key: Name, schema: SchemaObject, first?: Name)
lib/compile/jtd/serialize.ts:120
↓ 2 callers
Function
serializeSchemaProperties
(cxt: SerializeCxt, discriminator?: string)
lib/compile/jtd/serialize.ts:152
↓ 2 callers
Function
setEvaluated
(gen: CodeGen, props: Name, ps: {[K in string]?: true})
lib/compile/util.ts:167
↓ 2 callers
Function
shouldThrow
(p, exception)
spec/async_validate.spec.ts:418
↓ 2 callers
Function
shouldUseGroup
(schema: AnySchemaObject, group: RuleGroup)
lib/compile/validate/applicability.ts:13
↓ 2 callers
Function
sortErrors
(errors?: JTDError[] | null)
spec/jtd-schema.spec.ts:104
↓ 2 callers
Function
test
(extraErrors = 0, schemaPathPrefix = "#")
spec/errors.spec.ts:207
↓ 2 callers
Function
tryParseItems
(cxt: ParseCxt, endToken: string, block: () => void)
lib/compile/jtd/parse.ts:150
↓ 2 callers
Function
typeAndKeywords
(it: SchemaObjCxt, errsCount?: Name)
lib/compile/validate/index.ts:157
↓ 2 callers
Function
typeError
(t: string)
lib/vocabularies/jtd/error.ts:10
↓ 2 callers
Function
unescapeJsonPointer
(str: string)
lib/compile/util.ts:72
↓ 2 callers
Function
useKeyword
(gen: CodeGen, keyword: string, result?: KeywordCompilationResult)
lib/compile/validate/keyword.ts:120
↓ 2 callers
Function
usedState
(name: ValueScopeName)
lib/standalone/index.ts:85
↓ 2 callers
Function
validateAdditionalItems
(cxt: KeywordCxt, items: AnySchema[])
lib/vocabularies/applicator/additionalItems.ts:35
↓ 2 callers
Function
validateFunction
( {gen, validateName, schema, schemaEnv, opts}: SchemaCxt, body: Block )
lib/compile/validate/index.ts:49
↓ 2 callers
Function
validateItems
(_valid: Name, block: () => void)
lib/vocabularies/applicator/contains.ts:81
↓ 2 callers
Function
validatePropertyDeps
( cxt: KeywordCxt, propertyDeps: {[K in string]?: string[]} = cxt.schema )
lib/vocabularies/applicator/dependencies.ts:65
↓ 2 callers
Function
validateSchemaDeps
(cxt: KeywordCxt, schemaDeps: SchemaMap = cxt.schema)
lib/vocabularies/applicator/dependencies.ts:95
↓ 2 callers
Function
validateTuple
( cxt: KeywordCxt, extraItems: string, schArr: AnySchema[] = cxt.schema )
lib/vocabularies/applicator/items.ts:21
↓ 1 callers
Method
$dataError
()
lib/compile/validate/index.ts:434
↓ 1 callers
Method
_addDefaultMetaSchema
()
lib/core.ts:320
↓ 1 callers
Method
_addVocabularies
()
lib/core.ts:316
↓ 1 callers
Function
_callRef
(validate: Code, valid?: Name)
lib/vocabularies/dynamic/dynamicRef.ts:40
↓ 1 callers
Method
_compileMetaSchema
(sch: SchemaEnv)
lib/core.ts:744
↓ 1 callers
Method
_compileParser
(sch: SchemaEnv)
lib/jtd.ts:87
↓ 1 callers
Method
_compileSerializer
(sch: SchemaEnv)
lib/jtd.ts:80
↓ 1 callers
Function
_dynamicRef
(valid?: Name)
lib/vocabularies/dynamic/dynamicRef.ts:25
↓ 1 callers
Method
_error
(append?: boolean, errorPaths?: ErrorPaths)
lib/compile/validate/index.ts:430
↓ 1 callers
Function
_getAjvInstances
(opts: Options, useOpts: Options)
spec/ajv_instances.ts:11
↓ 1 callers
Function
_getValidate
(cxt: KeywordCxt)
lib/vocabularies/dynamic/dynamicAnchor.ts:22
↓ 1 callers
Function
_it
({only, skip}: JSONParseTest)
spec/jtd-schema.spec.ts:213
↓ 1 callers
Method
_nameGroup
(prefix: string)
lib/compile/codegen/scope.ts:83
↓ 1 callers
Method
_removeAllSchemas
(schemas: {[Ref in string]?: SchemaEnv | string}, regex?: RegExp)
lib/core.ts:684
↓ 1 callers
Function
_testSchema1
(_ajv, schema, schemaPathPrefix)
spec/errors.spec.ts:1004
↓ 1 callers
Function
addErrs
(cxt: KeywordCxt, errs: Code)
lib/compile/validate/keyword.ts:102
↓ 1 callers
Function
addFormatEnglishWord
()
spec/async_validate.spec.ts:383
↓ 1 callers
Function
addMapping
(tagValue: unknown, i: number)
lib/vocabularies/discriminator/index.ts:103
↓ 1 callers
Function
addMappings
(sch: AnySchemaObject, i: number)
lib/vocabularies/discriminator/index.ts:91
↓ 1 callers
Function
additionalPropertyCode
(key: Name)
lib/vocabularies/applicator/additionalProperties.ts:72
↓ 1 callers
Function
afterEach
(res: TestResult)
spec/after_test.ts:20
↓ 1 callers
Function
allErrorsMode
()
lib/vocabularies/validation/required.ts:50
↓ 1 callers
Function
allProperties
(ps: string[])
lib/compile/jtd/serialize.ts:184
↓ 1 callers
Function
applyAdditionalSchema
(key: Name, valid: Name, errors?: false)
lib/vocabularies/applicator/additionalProperties.ts:100
↓ 1 callers
Function
applyPropertySchema
(prop: string)
lib/vocabularies/applicator/properties.ts:44
↓ 1 callers
Function
applyPropertySchema
(prop: string, keyword: string, _valid: Name)
lib/vocabularies/jtd/properties.ts:128
↓ 1 callers
Function
applyTagSchema
(schemaProp?: number)
lib/vocabularies/discriminator/index.ts:56
↓ 1 callers
Function
applyTagSchema
(schemaProp: string)
lib/vocabularies/jtd/discriminator.ts:74
↓ 1 callers
Function
assertEqual
(code: Code | CodeGen, s: string)
spec/codegen.spec.ts:497
↓ 1 callers
Function
assertInvalid
(schemas: SchemaObject[], data: unknown)
spec/discriminator.spec.ts:382
↓ 1 callers
Function
assertNoDuplicateFunctions
(code: string)
spec/standalone.spec.ts:262
↓ 1 callers
Function
assertValid
(schemas: SchemaObject[], data: unknown)
spec/discriminator.spec.ts:376
↓ 1 callers
Function
assignDefault
(it: SchemaObjCxt, prop: string | number, defaultValue: unknown)
lib/compile/validate/defaults.ts:16
↓ 1 callers
Function
assignDefaults
(it: SchemaObjCxt, ty?: string)
lib/compile/validate/defaults.ts:5
↓ 1 callers
Function
assignEvaluated
({gen, evaluated, props, items}: SchemaCxt)
lib/compile/validate/index.ts:214
↓ 1 callers
Function
assignParentData
({gen, parentData, parentDataProperty}: SchemaObjCxt, expr: Name)
lib/compile/validate/dataType.ts:138
↓ 1 callers
Function
boolOrEmptySchema
(it: SchemaCxt, valid: Name)
lib/compile/validate/boolSchema.ts:23
↓ 1 callers
Function
callAsyncRef
()
lib/vocabularies/core/ref.ts:70
↓ 1 callers
Function
callRootRef
()
lib/vocabularies/core/ref.ts:23
↓ 1 callers
Function
callSyncRef
()
lib/vocabularies/core/ref.ts:88
↓ 1 callers
Function
callValidate
(sch: SchemaEnv)
lib/vocabularies/core/ref.ts:29
↓ 1 callers
Function
callValidate
(schema: AnySchemaObject)
lib/vocabularies/jtd/ref.ts:38
↓ 1 callers
Function
canOptimize
()
lib/vocabularies/validation/uniqueItems.ts:42
↓ 1 callers
Function
canOptimize
(e: SafeExpr)
lib/compile/codegen/index.ts:811
↓ 1 callers
Method
check$data
(valid: Name = nil, $dataValid: Code = nil)
lib/compile/validate/index.ts:459
↓ 1 callers
Function
checkAdditionalProperties
()
lib/vocabularies/applicator/additionalProperties.ts:44
↓ 1 callers
Function
checkAmbiguosRef
(sch1: AnySchema, sch2: AnySchema | undefined, ref: string)
lib/compile/resolve.ts:142
↓ 1 callers
Function
checkAsyncKeyword
({schemaEnv}: SchemaObjCxt, def: FuncKeywordDefinition)
lib/compile/validate/keyword.ts:116
↓ 1 callers
Function
checkAsyncSchema
(it: SchemaObjCxt)
lib/compile/validate/index.ts:183
↓ 1 callers
Function
checkContextTypes
(it: SchemaObjCxt, types: JSONType[])
lib/compile/validate/index.ts:278
↓ 1 callers
Function
checkErrors
(expectedErrs)
spec/issues/485_type_validation_priority.spec.ts:23
↓ 1 callers
Function
checkKeywordTypes
(it: SchemaObjCxt, ts: JSONType[])
lib/compile/validate/index.ts:298
↓ 1 callers
Function
checkLimits
(count: Name)
lib/vocabularies/applicator/contains.ts:96
↓ 1 callers
Function
checkMatchingProperties
(pat: string)
lib/vocabularies/applicator/patternProperties.ts:51
↓ 1 callers
Function
checkMultipleTypes
(it: SchemaObjCxt, ts: JSONType[])
lib/compile/validate/index.ts:292
↓ 1 callers
Function
checkNoDefault
(it: SchemaObjCxt)
lib/compile/validate/index.ts:171
↓ 1 callers
Function
checkRefsAndKeywords
(it: SchemaObjCxt)
lib/compile/validate/index.ts:164
↓ 1 callers
Function
checkStrictTuple
(sch: AnySchemaObject)
lib/vocabularies/applicator/items.ts:48
↓ 1 callers
Function
checkStrictTypes
(it: SchemaObjCxt, types: JSONType[])
lib/compile/validate/index.ts:271
↓ 1 callers
Function
cleanErrors
(errors?: JTDError[] | null)
spec/jtd-schema.spec.ts:88
↓ 1 callers
Function
coerceAndCheckDataType
(it: SchemaObjCxt, types: JSONType[])
lib/compile/validate/dataType.ts:40
↓ 1 callers
Function
coerceData
(it: SchemaObjCxt, types: JSONType[], coerceTo: JSONType[])
lib/compile/validate/dataType.ts:63
↓ 1 callers
Function
coerceSpecificType
(t: string)
lib/compile/validate/dataType.ts:90
↓ 1 callers
Function
coerceToTypes
(types: JSONType[], coerceTypes?: boolean | "array")
lib/compile/validate/dataType.ts:57
↓ 1 callers
Function
commonProperties
()
lib/vocabularies/jtd/properties.ts:87
↓ 1 callers
Method
compile
(schema: AnySchema, meta?: boolean)
lib/standalone/instance.ts:13
↓ 1 callers
Function
compileCheck
(IDs: number[])
spec/async_schemas.spec.ts:113
↓ 1 callers
Function
convertErrors
(errors: TestCaseError[])
spec/jtd-schema.spec.ts:95
↓ 1 callers
Function
countKeys
(schema: AnySchemaObject)
lib/compile/resolve.ts:56
↓ 1 callers
Function
createBundleConfig
(sourceFile, outFile, globalName)
rollup.config.js:7
↓ 1 callers
Function
createInstances
()
spec/errors.spec.ts:14
↓ 1 callers
Function
dataContextProps
(_nextData: Name)
lib/compile/validate/subschema.ts:116
↓ 1 callers
Method
defaultMeta
()
lib/core.ts:331
↓ 1 callers
Function
deleteAdditional
(key: Name)
lib/vocabularies/applicator/additionalProperties.ts:68
↓ 1 callers
Function
describeOnly
(name: string, func: () => void)
spec/jtd-schema.spec.ts:229
↓ 1 callers
Function
destructureValCxt
(opts: InstanceOptions)
lib/compile/validate/index.ts:66
↓ 1 callers
Function
destructureValCxtES5
(gen: CodeGen, opts: InstanceOptions)
lib/compile/validate/index.ts:72
↓ 1 callers
Function
equalCode
(vSchema: Name, i: number)
lib/vocabularies/validation/enum.ts:45
← previous
next →
201–300 of 786, ranked by callers