Skip to content

Allow overriding validation message Locale via configuration #64

@botond012

Description

@botond012

Description

Currently validation messages seem to depend on the JVM/default Locale.

In my case the application locale is Hungarian (hu), so validation messages are returned in Hungarian. This is not always desired: I may want the application locale to stay Hungarian, but validation errors to be returned in English or another specific language.

It would be useful to override the locale used for validation messages through configuration.

Expected behavior

Provide an API such as:

OpenApiValidator validator = new OpenApiValidator();
validator.setLocale(Locale.ENGLISH);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions