-
-
Notifications
You must be signed in to change notification settings - Fork 133
[Bug]: UnboundLocalError: local variable 'value' referenced before assignment #696
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
Comments
Oh hmm, this might be user error? The request validates if I set - "encoding": {"foo": {"contentType": "application/json"}},
+ "encoding": {
+ "foo": {
+ "contentType": "application/json",
+ "explode": False,
+ }
+ }, Still, |
Hi @andersk you use invalid data serialization strategy ?
this doesn't seem to correct json If you want to use style serialization then you don't need "contentype" just style/explode. You don't even need encoding object because it default serialization strategy is style form (which I forgot to implement)
The Thanks for your feedback. |
Huh? It is correct JSON. Python 3.10.12 (main, Jun 6 2023, 22:43:10) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import json
>>> json.loads('["a","b","c"]')
['a', 'b', 'c'] Without |
I get some confusion in drrialization process between those two similar examples: application/x-www-form-urlencoded:
schema:
type: object
properties:
prop:
type: array
items:
type: integer and multipart/form-data:
schema:
type: object
properties:
file:
type: array
items:
type: string
format: binary I will make change . hope it will work |
Actual Behavior
Expected Behavior
No error.
Steps to Reproduce
OpenAPI Core Version
current Git (0838a84)
OpenAPI Core Integration
none
Affected Area(s)
No response
References
No response
Anything else we need to know?
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: