Cody2333 / koa-swagger-decorator

using decorator to automatically generate swagger doc for koa-router
350 stars 81 forks source link

More configuration items, not limited to display #129

Closed bulog closed 3 years ago

bulog commented 3 years ago

https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/

Use options instead of options.display to parse Config string.

useful configuration like network, display

Eg: use network.validatorUrl to disable the validator badge

    swaggerConfiguration: {
        display: {
            ...
        },
        network: {
            validatorUrl: null
        }
    }