Skip to content

Client-generation: Allow data validation on the client side (using minLength/maxLength) #2549

@jfiala

Description

@jfiala

Currently the generated Java-clients perform required-validation automatically.
Do you think this makes sense for minLength/maxLength as well, to reject the request on the client side before sending to the server?

For Java the JSR-303 Bean Validation API could be used for this automatically.
For other languages maybe a JSON-schema validation could be used.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions