-
-
Notifications
You must be signed in to change notification settings - Fork 111
Description
Is your feature request related to a problem? Please describe.
Currently, I'm able to duplicate fields in the schema multiple times and the value of the last field is taken into account and populated in a object.
"input": { "firstName": "Test", "lastName": "Surname1", "lastName": "Surname2", "lastName": "Surname3", "lastName": "Surname4", "lastName": "Surname5", }
Request such as this one is considered valid and the Surname5 value is passed in the lastName
property.
Describe the solution you'd like
The generator settings could have an option for strict schema checking, where repeated fields will be considered invalid.
Describe alternatives you've considered
As an alternative there could be some specific annotation to achieve the same? Or way of marking fields.