Disable Swagger-UI when using openapi

Is it possible to disable swagger-ui when using the OpenApi plugin? I do not have the swagger-ui plugin installed yet I still can reach the endpoint and link is shown in metadata.

I don’t want to provide the swagger-ui and only want access to the openapi json.

I’ve just added an explicit DisableSwaggerUI = true that will let you disable SwaggerUI in OpenApiFeature plugin in this commit.

This option is available from v4.5.11 that’s now available on MyGet.

1 Like