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
Currently, headers parameters are not shown in Swagger UI. The problem is in the line 424 of Generator.cpp: filteredHeaders[header] = info->headers[header];
which uses operator[] instead of add() to insert header parameters. Hence, a possible fix is to change the line to: filteredHeaders.add(header, info->headers[header].type) = info->headers[header];
The text was updated successfully, but these errors were encountered:
I tried @asiirtol's fix, but the "required" field seems to be ignored when I tried to define an optional header. Now that I have to provide the header otherwise I get an error.
Currently, headers parameters are not shown in Swagger UI. The problem is in the line 424 of Generator.cpp:
filteredHeaders[header] = info->headers[header];
which uses
operator[]
instead ofadd()
to insert header parameters. Hence, a possible fix is to change the line to:filteredHeaders.add(header, info->headers[header].type) = info->headers[header];
The text was updated successfully, but these errors were encountered: