-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvement: support optional binary (#191)
`optional<binary>` now represented in go as `*ReadCloser` and a 204 status code is treated as nil
- Loading branch information
1 parent
4aa428a
commit aa9d9b9
Showing
15 changed files
with
347 additions
and
95 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
type: improvement | ||
improvement: | ||
description: Fixes issue where generated Conjure clients and servers did not properly handle empty responses for Conjure | ||
endpoints returning `optional<binary>`. | ||
The Conjure specification states that endpoints returning `optional<binary>` should return a 204 status code to | ||
indicate an empty optional (to distinguish from the case where the response is a present optional of 0 length). | ||
This change interprets `optional<binary>` as `*ReadCloser` (rather than `ReadCloser') and updates the server to mark | ||
'nil' responses with a 204 status code. Correspondingly, clients return 'nil' when the response has a 204 status code. | ||
links: | ||
- https://github.com/palantir/conjure-go/pull/191 |
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
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
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
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
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
Oops, something went wrong.