Replies: 1 comment 1 reply
-
you can get detailed errors at the ajv instance |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there.
I have a class for data validation
`export class SchemaValidator {
static ajv = new Ajv({ allErrors: true, verbose: true });
}`
I use JSON schema described in a separate file.
How to get the full output when validation fails so that I can understand which part exactly does not match?
For example, values in the enum did not match, or input data had some additional properties, missing properties, etc.
Right now I see only
data.payload.something should be equal to one of the allowed values
Beta Was this translation helpful? Give feedback.
All reactions