UNPKG
@redocly/ajv
Version:
latest (8.18.3)
8.18.3
8.18.2
8.18.1
8.18.0
8.17.4
8.17.3
8.17.2
8.17.1
8.11.4
8.11.3
8.11.2
8.11.1
8.11.0
8.6.5
8.6.4
8.6.3
8.6.2
8.6.1
8.6.0
6.12.4
6.12.3
6.12.2
Another JSON Schema Validator
ajv.js.org
ajv-validator/ajv
@redocly/ajv
/
lib
/
vocabularies
/
dynamic
/
recursiveRef.ts
11 lines
(8 loc)
•
253 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
type
{
CodeKeywordDefinition
}
from
"../../types"
import
{dynamicRef}
from
"./dynamicRef"
const
def
:
CodeKeywordDefinition
= {
keyword
:
"$recursiveRef"
,
schemaType
:
"string"
,
code
:
(
cxt
) =>
dynamicRef
(cxt, cxt.
schema
), }
export
default
def