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

Union: encode disrespects non-default variant/content property names #6

Closed
pabigot opened this issue Nov 17, 2015 · 0 comments
Closed

Comments

@pabigot
Copy link
Owner

pabigot commented Nov 17, 2015

Union.encode will only recognize the discriminator and content of a source object if the property names are variant and content respectively.

pabigot added a commit that referenced this issue Nov 17, 2015
The union definition may have provided property names in which case the
default ones are not what should be used when encoding.

Fixes #6.
@pabigot pabigot closed this as completed Nov 17, 2015
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