You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					15 lines
				
				401 B
			
		
		
			
		
	
	
					15 lines
				
				401 B
			| 
								 
											3 years ago
										 
									 | 
							
								import type {CodeKeywordDefinition} from "../../types"
							 | 
						||
| 
								 | 
							
								import {dynamicAnchor} from "./dynamicAnchor"
							 | 
						||
| 
								 | 
							
								import {checkStrictMode} from "../../compile/util"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								const def: CodeKeywordDefinition = {
							 | 
						||
| 
								 | 
							
								  keyword: "$recursiveAnchor",
							 | 
						||
| 
								 | 
							
								  schemaType: "boolean",
							 | 
						||
| 
								 | 
							
								  code(cxt) {
							 | 
						||
| 
								 | 
							
								    if (cxt.schema) dynamicAnchor(cxt, "")
							 | 
						||
| 
								 | 
							
								    else checkStrictMode(cxt.it, "$recursiveAnchor: false is ignored")
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export default def
							 |