forked from go-openapi/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix proposal: ByteStream consumer can write to interface{}
ByteStreamConsumer may write into an interface which underlying type is []byte or string. * fixes go-openapi#167 This PR affects only the ByteStreamConsumer. Obviously, there is a lot of commonality with the TextConsumer, which could be augmented the same way in a follow-up. Also the newly proposed type switch could benefit the Producer. Signed-off-by: Frederic BIDON <[email protected]>
- Loading branch information
Showing
2 changed files
with
130 additions
and
55 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
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