(it, valid)
| 2845 | } |
| 2846 | // schema compilation - this function is used recursively to generate code for sub-schemas |
| 2847 | function subschemaCode(it, valid) { |
| 2848 | if (isSchemaObj(it)) { |
| 2849 | checkKeywords(it); |
| 2850 | if (schemaCxtHasRules(it)) { |
| 2851 | subSchemaObjCode(it, valid); |
| 2852 | return; |
| 2853 | } |
| 2854 | } |
| 2855 | (0, boolSchema_1.boolOrEmptySchema)(it, valid); |
| 2856 | } |
| 2857 | function schemaCxtHasRules({ schema, self }) { |
| 2858 | if (typeof schema == "boolean") |
| 2859 | return !schema; |
no test coverage detected