Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /ajv-keywords /keywords /dot /patternRequired.jst
Download frontend/node_modules/ajv-keywords/keywords/dot/patternRequired.jst from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 781 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
-
curl -L -o patternRequired.jst https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/ajv-keywords/keywords/dot/patternRequired.jst
781 Bytes
| {{# def.definitions }} | |
| {{# def.errors }} | |
| {{# def.setupKeyword }} | |
| {{ | |
| var $key = 'key' + $lvl | |
| , $idx = 'idx' + $lvl | |
| , $matched = 'patternMatched' + $lvl | |
| , $dataProperties = 'dataProperties' + $lvl | |
| , $closingBraces = '' | |
| , $ownProperties = it.opts.ownProperties; | |
| }} | |
| var {{=$valid}} = true; | |
| {{? $ownProperties }} | |
| var {{=$dataProperties}} = undefined; | |
| {{?}} | |
| {{~ $schema:$pProperty }} | |
| var {{=$matched}} = false; | |
| {{# def.iterateProperties }} | |
| {{=$matched}} = {{= it.usePattern($pProperty) }}.test({{=$key}}); | |
| if ({{=$matched}}) break; | |
| } | |
| {{ var $missingPattern = it.util.escapeQuotes($pProperty); }} | |
| if (!{{=$matched}}) { | |
| {{=$valid}} = false; | |
| {{# def.addError:'patternRequired' }} | |
| } {{# def.elseIfValid }} | |
| {{~}} | |
| {{= $closingBraces }} | |