Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
401 bytes
|
Line | |
---|
1 | import type {CodeKeywordDefinition} from "../../types"
|
---|
2 | import {dynamicAnchor} from "./dynamicAnchor"
|
---|
3 | import {checkStrictMode} from "../../compile/util"
|
---|
4 |
|
---|
5 | const 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 |
|
---|
14 | export default def
|
---|
Note:
See
TracBrowser
for help on using the repository browser.