Bug in OpenApi formatter with multiple examples for same HTTP action?
-
With
config.format = "JSON"(and apitome) I see multiple docs for each example, e.g.
-
With
config.format = "open_api"(and redoc) I see ONE doc for each example action e.g.
.
(In addition, the 'summary' and 'description' are always empty in the generated open_api.json)
I looked into the code at how route_summary and friends are used and have looked through the issues. I can't imagine I'm the first person to encounter this but I haven't found anything. We don't use a fresh context for every example which I see in the readme example, but aside from that, perhaps there's just an unreported bug in the formatter?
@bf4 it's creating multiple examples per action when there is only one spec? Or you have two specs that are both being documented? Do you have a minimal example?
I'm using the word example to mean dsl methods example and example_request. I'll see if I can write a failing test