Extended configuration of Swagger UI

Hello,

is it possible to configure more options in the swagger UI beyond just the SwaggerUiOptions?

SwaggerUIOptions(pathPrefix: List[String], yamlName: String, contextPath: List[String], useRelativePaths: Boolean)

There are a pant-load of configuration options for swagger UI described here: Configuration | Swagger Docs

Is this possible?

The configUrl is hard-coded to point to the generated yaml; you can use the query string to customise any options.

As for anything that’s passed as options to the SwaggerUI constructor, that’s not possible. You can serve your own version of swagger-initializer.js, to include any kind of customizations that you require.

Hosting our own swagger-initializer.js is an interesting option that I hadn’t considered. Thanks for that idea!