2023-10-03 11:14:36 +08:00
|
|
|
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
|