-
-
Notifications
You must be signed in to change notification settings - Fork 932
Open
Labels
Description
What version of Ajv are you using? Does the issue happen if you use the latest version?
- v8.17.1
- Yes
Ajv options object
JSON Schema
N/ASample data
const Error0 = require("ajv/dist/runtime/validation_error").default;Your code
Validation result, data AFTER validation, error messages
What results did you expect?
The standalone code should be truly standalone and portable. With this require statement added, it is no longer truly standalone:
Lines 120 to 125 in 69568d0
| if (sch.$async) { | |
| _ValidationError = gen.scopeValue("Error", { | |
| ref: ValidationError, | |
| code: _`require("ajv/dist/runtime/validation_error").default`, | |
| }) | |
| } |
Are you going to resolve the issue?