Skip to content

RangeError: Maximum call stack size exceeded #29

@jplock

Description

@jplock

swagger-ui is able to fetch my individual API endpoint JSON documents, but when it starts parsing the models, it never displays anything and Chrome shows:

Uncaught RangeError: Maximum call stack size exceeded
SwaggerModelProperty.getSampleValue
SwaggerModel.createJSONSample
SwaggerModelProperty.getSampleValue
SwaggerModel.createJSONSample
SwaggerModelProperty.getSampleValue
SwaggerModel.createJSONSample
SwaggerModelProperty.getSampleValue
SwaggerModel.createJSONSample
SwaggerModelProperty.getSampleValue
SwaggerModel.createJSONSample
SwaggerModelProperty.getSampleValue
...

in the console. I'm using https://github.com/ryankennedy/swagger-jaxrs-doclet to generate my documentation off of a Dropwizard Java service. The JSON files it outputs are correct, so I'm not sure why the UI is looping. This is using the latest checkout of swagger-ui from master.

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