Header parameters not shown in Swagger UI
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 issue still persists, are there plans to resolve it? The fix seems simple enough and describing headers is an important swagger feature.
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.