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