Skip to content

Conversation

@iscai-msft
Copy link
Contributor

@iscai-msft iscai-msft commented Jan 22, 2021

Python has an issue where, in the case of failed error model deserialization, we still want to return an HttpResponseError to users, not a deserialization error. This is a test that throws an incorrect error model, that should result in a deserialization error. Ideally, your autorest code should throw an HttpResponseError instead of a DeserializationError

{
"name": "@microsoft.azure/autorest.testserver",
"version": "3.0.3",
"version": "3.0.4",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably update that to 3.0.5 when you other PR merge

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, i'm going to merge this one first, i'm leaving the other one on the back-burner for a bit, need to make some style changes to my autorest python pr for that, so I'm going to leave this one 3.04. thanks @timotheeguerin

@timotheeguerin
Copy link
Member

I recommend you install the prettier and eslint extension in vscode for the formatting so it automatically fix all those issues

@iscai-msft
Copy link
Contributor Author

@timotheeguerin you are very right, doing it now thanks

@iscai-msft iscai-msft merged commit 924a5e9 into master Jan 25, 2021
@timotheeguerin timotheeguerin deleted the incorrect_deserialization branch January 25, 2021 16:38
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

Successfully merging this pull request may close these issues.

3 participants