JKHeadley / rest-hapi

🚀 A RESTful API generator for Node.js

Home Page:https://resthapi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add general hapi-swagger config option

JKHeadley opened this issue · comments

Is your feature request related to a problem? Please describe.
Currently only specific hapi-swagger settings can be set (e.g. config.enableSwaggerUI)

Describe the solution you'd like
We need to add a config option that would allow all hapi-swagger config to be set.

Additional context
We will need to decide how defaults are set and make sure to handle when both current options are set (e.g. config.enableSwaggerUI) and the general options are used (e.g. config.hapiSwagger.swaggerUI)

Relevant code:
Config file
Swagger Options

Added with #172