Replies: 1 comment
-
you can get detailed errors at the ajv instance |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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