gbv / validation-server

Web service to validate data with support of multiple schema languages
https://format.gbv.de/validate/
MIT License
2 stars 1 forks source link

Return all errors when validating with JSON Schema #67

Open TobiasNx opened 1 year ago

TobiasNx commented 1 year ago

At the moment the AMB Validator only returns the first error it catches in an record.

https://format.gbv.de/validate/validate?format=amb&version=&encoding=&select=&data=&url=https%3A%2F%2Fapi.paideia.hbz-nrw.de%2Fresource%2Forca%3A245989e3-c0f9-427e-afb9-d179c8284c19%2FlrmiData

Is there a way to return all invalid elements?

nichtich commented 1 year ago

I've added a configuration option to include all errors but only enabled it in the dev-instance because there may be performance issues. This should best be an additional query parameter so I keep this issue open. Meanwhile use https://format.gbv.de/validate-dev:

https://format.gbv.de/validate-dev/validate?format=amb&version=&encoding=&select=&data=&url=https%3A%2F%2Fapi.paideia.hbz-nrw.de%2Fresource%2Forca%3A245989e3-c0f9-427e-afb9-d179c8284c19%2FlrmiData