You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jarpz this repository is for the OpenAPI specification itself. Please raise tooling issues with the tooling vendor.
More generally, it will be easier to extend JSON Schema within OpenAPI in OAS 3.1, and things like adding annotations for error messages would be a good use case for a set of extension keywords. This is the sort of thing that tooling vendors will probably drive, though. Over at the JSON Schema project, we've been asked about this several times but it's quite a challenge because competing desires around message behavior and I18N/L10N. So we have avoided adding it to the main JSON Schema specification.
Given a openapi.yml with any object with field constraints like this:
When we apply the plugin to generate code with java + spring-reactive we can obtain an object like this:
With javax. bean validation we can customize the message with a placeholder or hard-coded text.
Is there any way to customize javax annotation messages with place holders or text?
Regards
The text was updated successfully, but these errors were encountered: