Releases: Azure/msrest-for-python
v0.4.26
v0.4.25
v0.4.24
2018-01-03 Version 0.4.24
Bugfixes
- Date parsing is not compliant with Autorest / Swagger 2.0 specification (less lenient)
Internal optimisation
- Call that does not return a streamable object are now executed in requests stream mode False (was True whatever the type of the call).
This should reduce the number of leaked opened session and allow urllib3 to manage connection pooling more efficiently.
Only clients generated with Autorest.Python >= 2.1.31 (not impacted otherwise, fully backward compatible)
v0.4.23
v0.4.22
v0.4.21
v0.4.20
2017-12-13 Version 0.4.20
Features
-
Add support for additional_properties
- By default, all additional_properties are kept.
- Additional properties are sent to the server only if it was specified in the Swagger,
or if "enable_additional_properties_sending" is called on the model we want it.
This is a class method that enables it for all instance of this model.
v0.4.19
2017-11-20 Version 0.4.19
Features
-
The interpretation of Swagger 2.0 "discriminator" is now lenient. This means for these two scenarios:
- Discriminator value is missing from the received payload
- Discriminator value is not defined in the Swagger
Instead of failing with an exception, this now returns the base type for this "discriminator".
Note that this is not a contradiction of the Swagger 2.0 spec, that specifies
"validation SHOULD fail [...] there may exist valid reasons in particular circumstances to ignore a particular item,
but the full implications must be understood and carefully weighed before choosing a different course."This cannot be configured for now and is the new default behvaior, but can be in the future if needed.
Bugfixes
v0.4.18
v0.4.17
2017-10-12 Version 0.4.17
Features
This make Authentication classes more consistent:
- OAuthTokenAuthentication is now a subclass of BasicTokenAuthentication (was Authentication)
- BasicTokenAuthentication has now a "set_token" methods that does nothing.
This allows test like "isintance(o, BasicTokenAuthentication)" to be guaranted that the following attributes exists:
- token
- set_token()
- signed_session()
This means for users of "msrestazure", that they are guaranted that all AD classes somehow inherits from "BasicTokenAuthentication"