-
Notifications
You must be signed in to change notification settings - Fork 61
fix lro response setting #813
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
Conversation
| kwargs.pop('content_type', None) | ||
|
|
||
| def get_long_running_output(pipeline_response): | ||
| response_headers = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked out these missing response headers, and I think we were incorrectly generating them in the first place. Basically what happened was that we were setting the 202 response as the final deserialization, when it should've been the 200 response
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've checked all of the response headers where we no longer generate, and this is the case, @lmazuel what're your thoughts? I don't think this is a breaking change since it's really a bug fix, and all of the response headers we exposes before were empty
| if len(response_types) > 1: | ||
| responses_with_bodies = [r for r in self.responses if r.has_body] | ||
| response = None | ||
| if len(responses_with_bodies) > 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep condition # response schemas
…into lro_200 * 'autorestv3' of https://github.com/Azure/autorest.python: Update package.json Update ChangeLog.md set discriminator value if readonly (#815) regen to get testserver updates (#814)
…into lro_200 * 'autorestv3' of https://github.com/Azure/autorest.python: add tests for empty first page (#824) access error model from operation group's model property (#819)
…into directive_generate_item_paged * 'autorestv3' of https://github.com/Azure/autorest.python: Update package.json Update ChangeLog.md include generation and tests for no operations (#802) fix lro response setting (#813) add tests for empty first page (#824) access error model from operation group's model property (#819)
…into paging_separate_operations * 'autorestv3' of https://github.com/Azure/autorest.python: Update package.json Update ChangeLog.md add support for custom pollers and pagers (#821) Update package.json Update ChangeLog.md include generation and tests for no operations (#802) fix lro response setting (#813) add tests for empty first page (#824) access error model from operation group's model property (#819)
…into multiapi_diff_signatures * 'autorestv3' of https://github.com/Azure/autorest.python: (25 commits) Update package.json Update ChangeLog.md add support for custom pollers and pagers (#821) Update package.json Update ChangeLog.md include generation and tests for no operations (#802) fix lro response setting (#813) add tests for empty first page (#824) access error model from operation group's model property (#819) Update package.json Update ChangeLog.md set discriminator value if readonly (#815) regen to get testserver updates (#814) allow services with no operations to generate (#801) Update package.json Update ChangeLog.md set default value for properties if x-ms-client-default set (#798) Update package.json Update ChangeLog.md add support for --python.debugger (#790) ...
…into add_typing_imports * 'autorestv3' of https://github.com/Azure/autorest.python: Update package.json Update ChangeLog.md add support for custom pollers and pagers (#821) Update package.json Update ChangeLog.md include generation and tests for no operations (#802) fix lro response setting (#813) add tests for empty first page (#824) access error model from operation group's model property (#819) Update package.json Update ChangeLog.md set discriminator value if readonly (#815) regen to get testserver updates (#814) allow services with no operations to generate (#801) Update package.json Update ChangeLog.md set default value for properties if x-ms-client-default set (#798)
fixes #812