openapi-spring-webflux-validator icon indicating copy to clipboard operation
openapi-spring-webflux-validator copied to clipboard

How to configure validator messages?

Open frenchu opened this issue 4 years ago • 1 comments

Can I configure validator messages via properties?

I saw keys.properties file in the root dir of the repo, but it doesn't seem to work. Also I find a way to configure that by overriding Atlassian swagger-request-validator-core properties on the classpath. Although, I think it is not a very clean solution.

frenchu avatar Jul 14 '21 09:07 frenchu

You can add a custom error handler, then set the message to anything you want. The README provides an example

cdimascio avatar Jan 04 '23 02:01 cdimascio