Skip to content
New issue

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

[BUG] markOptionsAsNullable doesn't work for reference types #3234

Closed
eanea opened this issue Oct 10, 2023 · 0 comments · Fixed by #3235
Closed

[BUG] markOptionsAsNullable doesn't work for reference types #3234

eanea opened this issue Oct 10, 2023 · 0 comments · Fixed by #3235

Comments

@eanea
Copy link

eanea commented Oct 10, 2023

Tapir version: 1.8.0

Scala version: 2.13.12

Describe the bug
markOptionsAsNullable doesn't work for field: Option[A] where A is not a primitive type, e.g. A is a class

What is the problem?

How to reproduce?
https://scastie.scala-lang.org/YJh2KhRjS5y0CNBkofZkkQ

image

Expected

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant