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

Support sum ADTs with discriminator #47

Closed
jakipatryk opened this issue Apr 3, 2024 · 0 comments · Fixed by #49
Closed

Support sum ADTs with discriminator #47

jakipatryk opened this issue Apr 3, 2024 · 0 comments · Fixed by #49
Assignees
Labels
enhancement New feature or request

Comments

@jakipatryk
Copy link
Collaborator

jakipatryk commented Apr 3, 2024

https://swagger.io/docs/specification/data-models/inheritance-and-polymorphism/

It should be possible to configure the behaviour:

  • either use discriminator with sum ADTs or not
  • discriminator property name: by default <sealed-type-name>Type, but with possible customization function in config
  • hen sum ADT is nested, it should be configurable whether child ADTs should have both parent and its own discriminators or just their own discriminators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant