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
An encoded version (the one included in the documentation) of a default value is automatically derived only in case of basic types (like strings or numbers). It is currently not supported for complex types like enumeratum enums.
Since version 0.20.0-M10 it is possible to provide custom encoded value, e.g.:
case class Input(
@default(E.Value, encoded=Some("Value"))
e: E
//...
)
// or
case class Input(
@default(E.Value, encoded=Some(E.Value))
e: E
//...
)
Tapir version: 0.20.0-M6
Scala version: 2.12.15
Describe the bug
When I specify a default value for a string using annotations, it is added as a default value in yaml. But it is not happening in case of enumeratum.
How to reproduce?
You can see that in the following output there is no default value for E:
The text was updated successfully, but these errors were encountered: