Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add uiOptions setting to pass arbitrary options to Swagger UI #807

Merged
merged 1 commit into from
Jul 8, 2023

Conversation

markopy
Copy link

@markopy markopy commented Jun 12, 2023

There are quite a few Swagger UI settings which someone using hapi-swagger might want to change. Instead of adding them all as plugin options this PR adds a single uiOptions setting which can be an object of arbitrary options passed to Swagger UI.

@robmcguinness
Copy link
Collaborator

@markopy would it be possible to add all the options in the type definition?

@markopy
Copy link
Author

markopy commented Jul 2, 2023

@robmcguinness Do you mean the Swagger UI options? The main point of this PR was to not have to explicitly define them all in hapi-swagger because it's a constant maintenance burden and the list will inevitably become out of date.

@robmcguinness
Copy link
Collaborator

Understood. Just trying to make the TS community happy 😄

@robmcguinness robmcguinness merged commit 535020a into hapi-swagger:master Jul 8, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants