karthikeyankp
2 years agoOccasional Visitor
customize error message
we are using OpenAPI, and use components that have type/value validations. When I access the relevant paths with wrong type/values, I get a default message which I want to customize. Is there way to customize the error message?
For ex.,, change the default message from "must match pattern \"^[0-9]{10}$\" to "Phone Number format is invalid"