belgif / rest-problem-java

Java library for RFC 9457 Problems with support for standard problem types of the Belgif REST guide (https://www.belgif.be/specification/rest/api-guide/#error-handling)
https://belgif.github.io/rest-problem-java/
Apache License 2.0
3 stars 0 forks source link

Disallow inputs array (inputvalidationissue) of size one #77

Open usku01 opened 2 months ago

usku01 commented 2 months ago

By convention, the inputs[] array in InputValidationIssue should only be used when there are multiple referenced inputs. For referencing a single input, in/name/value should be used instead.

This behavior should be enforced by the rest-problem library when adding input validation issues via the available methods.