[REQ] Option to add a default message for the validations
We are using open API to generate kotlin classes, i noticed there is no option to add validiation message in open api spec.
Example:
Here when the name fails the pattern or length validation i want to have an option to define custom message for each validation similar to what we have in javax validations to write a custom message for all validations
NewPet: type: object description: JSON defining a Pet object required: - name properties: name: type: string maxLength: 10 pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89AB][0-9a-f]{3}-[0-9a-f]{12}$
Any update on this
We are using open API to generate kotlin classes, i noticed there is no option to add validiation message in open api spec.
Example:
Here when the name fails the pattern or length validation i want to have an option to define custom message for each validation similar to what we have in javax validations to write a custom message for all validations
NewPet: type: object description: JSON defining a Pet object required: - name properties: name: type: string maxLength: 10 pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89AB][0-9a-f]{3}-[0-9a-f]{12}$
pattern validation have option to add validation message the others i think don't need....