download
raw
485 Bytes
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

Xet Storage Details

Size:
485 Bytes
·
Xet hash:
480422919855ddccfc265a27fc8f6843441e6526ae99b1dbf951c3cb7a941f51

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.