source: imaps-frontend/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 401 bytes
Line 
1import type {CodeKeywordDefinition} from "../../types"
2import {dynamicAnchor} from "./dynamicAnchor"
3import {checkStrictMode} from "../../compile/util"
4
5const def: CodeKeywordDefinition = {
6 keyword: "$recursiveAnchor",
7 schemaType: "boolean",
8 code(cxt) {
9 if (cxt.schema) dynamicAnchor(cxt, "")
10 else checkStrictMode(cxt.it, "$recursiveAnchor: false is ignored")
11 },
12}
13
14export default def
Note: See TracBrowser for help on using the repository browser.