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
Go generator cannot generate models for types that could be two separate types simultaneously, for example, a servers object that could be a list of server objects or a reference object.
Expected behavior
Go generator can generate models that support union types or replicate the functionality of union types in golang, with respect to what is possible in golang.
Souvikns
changed the title
[BUG] go generator is unable to handle unions correctly.
[BUG] go generator is unable to handle unions types correctly.
Feb 28, 2024
Describe the bug.
Go generator cannot generate models for types that could be two separate types simultaneously, for example, a servers object that could be a list of server objects or a reference object.
Expected behavior
Go generator can generate models that support union types or replicate the functionality of union types in golang, with respect to what is possible in golang.
Screenshots
servers
could be a reference type as well.How to Reproduce
use
modelina
to generate models for the AsyncAPI JSON scheme🥦 Browser
Mozilla Firefox
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: