OpenAPI 2.x: make execute parameter builders for query and formData consistent with each other
glowcloud opened this issue · 1 comments
glowcloud commented
The logic for query
and formData
parameter builders should be the same.
The current form data builder processes truthy values differently than query, adding allowEmptyValue
to it. It also adds an empty string as parameter value if the value is undefined
and allowEmptyValue
is true.
Form data builder:
swagger-js/src/execute/swagger2/parameter-builders.js
Lines 18 to 35 in 7e1cf7b
Query builder:
swagger-js/src/execute/swagger2/parameter-builders.js
Lines 51 to 72 in 7e1cf7b