You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings. There's been an issue to the problem I am referring to, which was closed for no reason to my understanding.
Essentially, when you define a Schema with a List[str] field the openapi generated documentation is not in sync with what the schema excepts.
The schema excepts a repeated value (e.g names=John&names=Jane) or through JavaScript code:
constnames=["John","Jane"];constform=newFormData();for(constnameofnames)form.append("names",name);// make request
But the openapi docs send a single comma separated string resulting to an array with a single item containing that string (e.g ["John, Jane"].
The documentation is supposed to work out of the box. User code checking for commas to fix that library issue shouldn't be acceptable (what if the separated string contained a comma itself?).
The text was updated successfully, but these errors were encountered:
Greetings. There's been an issue to the problem I am referring to, which was closed for no reason to my understanding.
Essentially, when you define a
Schema
with aList[str]
field the openapi generated documentation is not in sync with what the schema excepts.The schema excepts a repeated value (e.g names=John&names=Jane) or through
JavaScript
code:But the openapi docs send a single comma separated string resulting to an array with a single item containing that string (e.g
["John, Jane"]
.The documentation is supposed to work out of the box. User code checking for commas to fix that library issue shouldn't be acceptable (what if the separated string contained a comma itself?).
The text was updated successfully, but these errors were encountered: