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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When there is a query param in the form of array of nullable elements, there is no way to use it to search for that property being nil. The method parameterAddToHeaderOrQuery apparently supports it by checking
if v == reflect.ValueOf(nil) {
value = "null"
}
but is not enough as the element received, if nil, doesn't make that assertion true.
Bug Report Checklist
Description
When there is a query param in the form of array of nullable elements, there is no way to use it to search for that property being nil. The method
parameterAddToHeaderOrQuery
apparently supports it by checkingbut is not enough as the element received, if nil, doesn't make that assertion true.
openapi-generator version
7.9.0
OpenAPI declaration file content or url
Openapi.yaml
Generation Details
Steps to reproduce
Based on the Openapi example provided before, I can run
to search for devices with
cluster_id=nil
. This will fail inparameterAddToHeaderOrQuery
as it enters in the caseand panics in
v.Elem().Interface()
as the pointer is nilSuggest a fix
My issue was fixed when manually editing the mentioned method considering the pointer being nil
The text was updated successfully, but these errors were encountered: