Feature request
Since we can validate an Enumeration using sttp.tapir.Validator.Enumeration, I want to have a custom message for the invalid case.
Use case
For example, when we want to validate a list of enumeration inputs, if one of them fails the validation, the error message is too generic to specify which one is wrong.
Proposed solution
We can add an optional field to sttp.tapir.Validator.Enumeration as showMessageOpt: Option[T => String] to handle the error message.
Besides this approach, do we have any workaround? If not, I can help to implement this.
Feature request
Since we can validate an Enumeration using
sttp.tapir.Validator.Enumeration, I want to have a custom message for the invalid case.Use case
For example, when we want to validate a list of enumeration inputs, if one of them fails the validation, the error message is too generic to specify which one is wrong.
Proposed solution
We can add an optional field to
sttp.tapir.Validator.EnumerationasshowMessageOpt: Option[T => String]to handle the error message.Besides this approach, do we have any workaround? If not, I can help to implement this.