(it)
| 2775 | const errors_1 = __webpack_require__(/*! ../errors */ "./node_modules/ajv/dist/compile/errors.js"); |
| 2776 | // schema compilation - generates validation function, subschemaCode (below) is used for subschemas |
| 2777 | function validateFunctionCode(it) { |
| 2778 | if (isSchemaObj(it)) { |
| 2779 | checkKeywords(it); |
| 2780 | if (schemaCxtHasRules(it)) { |
| 2781 | topSchemaObjCode(it); |
| 2782 | return; |
| 2783 | } |
| 2784 | } |
| 2785 | validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it)); |
| 2786 | } |
| 2787 | exports.validateFunctionCode = validateFunctionCode; |
| 2788 | function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) { |
| 2789 | if (opts.code.es5) { |
nothing calls this directly
no test coverage detected