GeneriekPublicatiePlatformWoo / registratie-component

A registration providing the functionalities for a "public documents" storage.
https://odrc.readthedocs.io
Other
1 stars 1 forks source link

Apply error-response post processing to conform to NL API strategy #116

Closed sergei-maertens closed 2 weeks ago

sergei-maertens commented 2 weeks ago

Error responses currently don't include invalidParams for validation errors, which is not consistent with all the other APIs

sergei-maertens commented 2 weeks ago

-> copy over code from other projects for this, maybe it's in OAF already too

sergei-maertens commented 2 weeks ago

Note: this doesn't seem to be mentioned (anymore?) on https://logius-standaarden.github.io/API-Design-Rules/, but probably it's a good idea to apply this still for consistency with existing APIs

sergei-maertens commented 2 weeks ago

Did some more digging, no mention at all anymore of RFC 9457 or 7807 (the one that preceded it). I could also track down the original discussion where they opted to deviate from the RFC (invalid-params -> invalidParams, https://github.com/Geonovum/KP-APIs/issues/289) so not sure what the point still would be to adhere to this.

Furthermore:

So, closing this as wontfix - let's not waste any time trying to be holier than the pope :wink: