[go: up one dir, main page]

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] mapping is sometimes lost in schema generation #3928

Open
lgmyrek opened this issue Jul 12, 2024 · 0 comments
Open

[BUG] mapping is sometimes lost in schema generation #3928

lgmyrek opened this issue Jul 12, 2024 · 0 comments

Comments

@lgmyrek
Copy link
lgmyrek commented Jul 12, 2024

Tapir version: 1.10.12

Scala version: 2.13.14

Describe the bug

Mapping for coproduct schemas is for some reason lost during the generation while oneOf contains proper ref
eg.

    Nodes_WrappedString:
      title: Nodes_WrappedString
      oneOf:
      - $ref: '#/components/schemas/Node_WrappedString'
      discriminator:
        propertyName: type
        mapping:
          Node: Defs.Node

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

Additional information
context:
https://softwaremill.community/t/custom-recursive-schemas/419/4

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

No branches or pull requests

1 participant