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
Describe the bug
From my understanding of the documentation, the coerceTypes option is set to 'true' by default. However, I am unable to modify this setting to other options, such as 'array'.
To Reproduce
Create a basic openapi document with an object param that nests an array param
Expected behavior
Pass validation and coerce the values properly to an array, as per documentation https://ajv.js.org/coercion.html
Examples and context
Not sure why but on a simpler case this is working and the value apparently is properly coerced to an array http://localhost/api/route?property=value1
Any update about this issue ? I have the same problem, and I cannot find any workaround.
But I can confirm the PR #809 solve the problem. Is it possible to review and merge it ?
Describe the bug
From my understanding of the documentation, the coerceTypes option is set to 'true' by default. However, I am unable to modify this setting to other options, such as 'array'.
To Reproduce
array
http://localhost/api/route?property[values]=value1
Actual behavior
Expected behavior
Pass validation and coerce the values properly to an array, as per documentation https://ajv.js.org/coercion.html
Examples and context
Not sure why but on a simpler case this is working and the value apparently is properly coerced to an array
http://localhost/api/route?property=value1
The text was updated successfully, but these errors were encountered: