Skip to content

example generation crashes browser #430

@tsoestini

Description

@tsoestini

RapiDoc currently generates every possible combination of examples.

Unfortunately, this means if you have an object with 10 fields, each with two examples, you get 1024 examples.

And, if you have a route that returns a left object and a right object of those, then you have 1M examples, crashing the browser.

So, why not just stick to one example?

I'd love to, but RapiDoc auto-generates two examples for every oneOf element that I have.

Maybe the default behavior (or at least an optional behavior) could be to only generate examples for the first choice of any oneOf element?

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