Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
13
my-app/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts
generated
vendored
Executable file
13
my-app/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
import type {CodeKeywordDefinition} from "../../types"
|
||||
import type {KeywordCxt} from "../../compile/validate"
|
||||
import {checkStrictMode} from "../../compile/util"
|
||||
|
||||
const def: CodeKeywordDefinition = {
|
||||
keyword: ["then", "else"],
|
||||
schemaType: ["object", "boolean"],
|
||||
code({keyword, parentSchema, it}: KeywordCxt) {
|
||||
if (parentSchema.if === undefined) checkStrictMode(it, `"${keyword}" without "if" is ignored`)
|
||||
},
|
||||
}
|
||||
|
||||
export default def
|
||||
Loading…
Add table
Add a link
Reference in a new issue