A plugin for Swagger UI to show x-enum-varnames / x-enumNames and x-enum-descriptions.
npm install swagger-ui-plugin-enum-namesA plugin for Swagger UI to show x-enum-varnames / x-enumNames and x-enum-descriptions.
x-enum-varnames/x-enum-descriptions are supported by openapi-generator (docs).
Also x-enumNames is supported by NSwag (docs).
shell
$ npm i swagger-ui-plugin-enum-names
`Pass this plugin to options.
`js
const { EnumNamesPlugin } = require('swagger-ui-plugin-enum-names')SwaggerUI({
plugins: [
EnumNamesPlugin
]
})
`
And import swagger-ui-plugin-enum-names/dist/index.css in some way.$3
`html
``