-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for multiple response types (#421)
Operations that return different types depending on HTTP status code now return interface{}. Generate a method comment that includes the possible return types. LROs are excluded from this conversion as it's not applicable. Fixed response envelope generation for multi-response methods. Remove HTTP redirect status codes for cases where the Go HTTP client implicitly follows them and added missing tests. Fixed codegen for checking HTTP status codes of single-response APIs. Updated test server version which fixed a few urlgroup tests.
- Loading branch information
1 parent
403d35f
commit f9f6f70
Showing
14 changed files
with
752 additions
and
584 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
164 changes: 65 additions & 99 deletions
164
test/autorest/generated/httpinfrastructuregroup/httpredirects.go
Large diffs are not rendered by default.
Oops, something went wrong.
135 changes: 36 additions & 99 deletions
135
test/autorest/generated/httpinfrastructuregroup/models.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.