Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Discriminator #220

Closed
amenophis opened this issue Jan 22, 2014 · 1 comment
Closed

Discriminator #220

amenophis opened this issue Jan 22, 2014 · 1 comment

Comments

@amenophis
Copy link

Hi @schmittjoh,
About the Discriminator, it seems the km field as described in the doc is not mandatory. what is this field ?

Is it possible tu use an attribute for the type field instead a value inside the XML tag ?

Thanks !

@josephdpurcell
Copy link

The discriminator allows you to tell the serializer: "Hey, when you see 'this' value in the serialized data, use 'that' class to deserialize it into." You can use a discriminator with both xml and json.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants