We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tapir version: 0.20.1
Scala version: 2.12.15
Describe the bug
Annotations have no effect on Option types.
How to reproduce?
case class A(s: String) case class Input( @encodedExample(A("a").asJson) @default(A("a"), Some("a")) a: Option[A] )
It generates schema without default and example fields:
default
example
components: schemas: A: required: - s type: object properties: s: type: string
Additional information
It doesn't work for case classes but works for Option[String].
Option[String]
The text was updated successfully, but these errors were encountered:
rucek
Successfully merging a pull request may close this issue.
Tapir version: 0.20.1
Scala version: 2.12.15
Describe the bug
Annotations have no effect on Option types.
How to reproduce?
It generates schema without
default
andexample
fields:Additional information
It doesn't work for case classes but works for
Option[String]
.The text was updated successfully, but these errors were encountered: