Spaces:
Sleeping
Sleeping
Download frontend/node_modules/ajv-keywords/keywords/switch.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 817 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/ajv-keywords/keywords/switch.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/ajv-keywords/keywords/switch.js
-
curl -L -o switch.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/ajv-keywords/keywords/switch.js
817 Bytes
| ; | |
| var util = require('./_util'); | |
| module.exports = function defFunc(ajv) { | |
| if (ajv.RULES.keywords.switch && ajv.RULES.keywords.if) return; | |
| var metaSchemaRef = util.metaSchemaRef(ajv); | |
| defFunc.definition = { | |
| inline: require('./dotjs/switch'), | |
| statements: true, | |
| errors: 'full', | |
| metaSchema: { | |
| type: 'array', | |
| items: { | |
| required: [ 'then' ], | |
| properties: { | |
| 'if': metaSchemaRef, | |
| 'then': { | |
| anyOf: [ | |
| { type: 'boolean' }, | |
| metaSchemaRef | |
| ] | |
| }, | |
| 'continue': { type: 'boolean' } | |
| }, | |
| additionalProperties: false, | |
| dependencies: { | |
| 'continue': [ 'if' ] | |
| } | |
| } | |
| } | |
| }; | |
| ajv.addKeyword('switch', defFunc.definition); | |
| return ajv; | |
| }; | |