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

[Python] None value in "object" Swagger type are incorrectly converted to "None" and not null #1353

Closed
lmazuel opened this issue Aug 13, 2016 · 0 comments
Assignees
Labels

Comments

@lmazuel
Copy link
Member

lmazuel commented Aug 13, 2016

In [1]: import msrest.serialization
In [2]: serializer = msrest.serialization.Serializer()
In [3]: serializer.serialize_object({'test': None})
Out[3]: {'test': 'None'}

this should be None, then the JSON serializer can translate as the correct "null" in the JSON payload

Expected:

In [1]: import msrest.serialization
In [2]: serializer = msrest.serialization.Serializer()
In [3]: serializer.serialize_object({'test': None})
Out[3]: {'test': None}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants