Skip to content

Support strict schema checking option to prevent parameter duplication #1578

@VladimirSmatanik

Description

@VladimirSmatanik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions