Closed w3nl closed 1 month ago
You could try customizing the ajv options with this https://ajv.js.org/options.html#allerrors
Thanks, it works:
const api = new OpenAPIBackend({
definition: openAPISpecification,
strict: true,
ajvOpts: { allErrors: true },
customizeAjv: (originalAjv) => {
addFormats(originalAjv)
return originalAjv
}
})
No changes needed for this package
Hi,
I have enabled the request validation (https://openapistack.co/docs/openapi-backend/request-validation/) I have a post where I can submit a json object. It works nice, but it returns only a single error. If i solve this, it returns the other error. So it works good, only is my question, is it intended that it only returns a single error for a json object? Or can I also return multiple, is it something in the openapi-backend package, or is it because another dependency for the openapi validation?