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

feat(php): undiscriminated unions #4783

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dcb6
Copy link
Contributor

@dcb6 dcb6 commented Sep 30, 2024

This PR introduces support in PHP for undiscriminated unions, including the following:

  • serde for undiscriminated type properties, with types indicated by a Union annotation (the previous Union class was easily converted into an annotation)
  • serde for responses that are direct unions

TODO:

  • serde for requests that are direct unions

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

Successfully merging this pull request may close these issues.

1 participant