Closed lmazuel closed 7 years ago
Fixed an issue in Paging created by the patch. Filled a bug to have Paging tests in msrest as well #6
So closing this issue for now, too many Swagger files have RestAPI response that does not fill required parameters. Following closely with Autorest team to have this at least in the linter, and might re-open this issue later.
There is an issue if the payload does not contains a required field. For instance, this payload
{"status":"Succeeded"}
should not be deserialized successfully in the following model:The current code is parsing using
dict.get
and then giveNone
values to fields not in the payload. This should raise aDeserializationError
.This PR fixes this issue and adds a unit test. However, I still have two unit tests broken, but I don't know exactly why, and if these unit tests are correct. Still opening this PR for review of @annatisch and @brettcannon if you are curious.