middlewares icon indicating copy to clipboard operation
middlewares copied to clipboard

@nanoexpress/middleware-schemator Possibility to add title to initialize options

Open torbjorn-kvist opened this issue 3 years ago • 2 comments

Feature Request

Is you/your team sponsoring this project

  • [ ] Yes
  • [x] No

If your team sponsoring this project, please attach here your team lead or who purchased license GitHub login

Is your feature request related to a problem? Please describe

Currently there is no way to set a title from the Initialize options app.get('/swagger', render({ exposePath: /${exposePath} }));

But possible if you call schematorInstance.render(options) directly. So one way is probably to just define the app.get('swagger', func) to override the path.

Describe the solution you'd like

Add an option to Initialize options e.g options.swaggerUITitle or similar.

Willing to create a PR for the change! Just wanted to check if this is something that are inline in what the middleware should do.

Describe alternatives you've considered

Expose it in some other way or just override app.get('swagger', func)?

Teachability, Documentation, Adoption, Migration Strategy

torbjorn-kvist avatar Aug 04 '21 12:08 torbjorn-kvist

@torbjorn-kvist I happy to see your PR and we'll merge if it's correctly implemented and does not break old logic

dalisoft avatar Aug 21 '21 15:08 dalisoft

I already tried to develop that feature and it working, maybe later will make a PR for this request.

game5413 avatar Aug 21 '21 16:08 game5413