Skip to content

Providing input parameters like defaultModelsExpandDepth #41

@gnikpub

Description

@gnikpub

Hi,

First at all this project is super cool and helpful.

I was experimenting a bit with the functionality that allows, expending of swagger API details, provided by configuration option docExpansion. Wanted to list details, but with the schemas drop down menu closed my default:

Image

My understanding is that the default Swagger UI allows this via the flag option defaultModelsExpandDepth.
Can this be achieved natively into mkdocs-swagger-ui. For example something like:

<swagger-ui defaultModelsExpandDepth='0' src="https://petstore.swagger.io/v2/swagger.json"/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions