Skip to content

How to stop exploring json code in browser #8968

@Dhina-test

Description

@Dhina-test

Hi ,
I am trying to run swagger docker container with custom json file with help of https://swagger.io/docs/open-source-tools/swagger-ui/usage/installation/ by
docker run -p 80:8080 -e SWAGGER_JSON=/foo/swagger.json -v /bar:/foo swaggerapi/swagger-ui

Here container works and site gets up .but my json file appears in swagger site like

image

when i click custom.json it's displaying my json code .

image

So how to stop display json code ?
Can you help

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