Skip to content

Bug in OpenApi formatter with multiple examples for same HTTP action? #493

@bf4

Description

@bf4
  • With config.format = "JSON" (and apitome) I see multiple docs for each example, e.g.

Screen Shot 2021-03-22 at 12 59 54 PM

  • With config.format = "open_api" (and redoc) I see ONE doc for each example action e.g. Screen Shot 2021-03-22 at 1 00 00 PM.
    (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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions