-
-
Notifications
You must be signed in to change notification settings - Fork 227
allow unknown string format properties #65
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
Codecov Report
@@ Coverage Diff @@
## master #65 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 10 10
Lines 671 669 -2
=========================================
- Hits 671 669 -2
Continue to review full report at Codecov.
|
Thanks @acgray this looks good. The only concern I have is that support for the "byte" format has not been added yet, and I would expect that type to use the Python |
Sure, although given the content-type is currently assumed to be application/json, the case of a field containing raw bytes inside a JSON object seems to me to be relatively unlikely. Did you have a use-case in mind that I'm missing? |
Sure, we work with IoT which pushes some packed binary data up to save space. Most of these don't use an OpenAPI endpoint right now but we're moving everything in that direction. Some visible metadata can go in JSON keys while the main fat payload can be a big binary blob. We do also support "application/x-www-form-urlencoded" and "multipart/form-data" in requests and "text/html" in responses. Though now that you mention it, I wonder if httpx is always picking the right content-type based on payload >.>. We don't explicitly set it today. |
After some more right on this, you're right @acgray. Embedding binary data within JSON is rare enough that we probably don't need to add support. With the generic string feature, that data should come through as a base64 encoded string, at which point the developers working with binary data presumably know what they want to do with it (which might not be the I'm going to merge this one in and if someone complains about manually decoding data we can revisit decoding it in here. |
Great to hear! Afraid work circumstances mean I'm very part-time on
engineering right now, so apologies for the slow responses
…On Sat, Jun 13, 2020 at 2:41 PM Dylan Anthony ***@***.***> wrote:
Merged #65 <#65>
into master.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com./notifications/unsubscribe-auth/AAGXHVU3XDDBJSYAL55YEZDRWN6ZRANCNFSM4NYKJ6RQ>
.
|
@acgray not a problem at all. Thanks for all your contributions! |
Addresses #64