(sch)
| 5661 | callRef(cxt, v, sch, sch.$async); |
| 5662 | } |
| 5663 | function inlineRefSchema(sch) { |
| 5664 | const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch }); |
| 5665 | const valid = gen.name("valid"); |
| 5666 | const schCxt = cxt.subschema({ |
| 5667 | schema: sch, |
| 5668 | dataTypes: [], |
| 5669 | schemaPath: codegen_1.nil, |
| 5670 | topSchemaRef: schName, |
| 5671 | errSchemaPath: $ref, |
| 5672 | }, valid); |
| 5673 | cxt.mergeEvaluated(schCxt); |
| 5674 | cxt.ok(valid); |
| 5675 | } |
| 5676 | }, |
| 5677 | }; |
| 5678 | function getValidate(cxt, sch) { |
no test coverage detected