-
Notifications
You must be signed in to change notification settings - Fork 452
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
Support changing the OpenAPI document based on the request #2505
Conversation
Define `patchDocument` option to patch the OpenAPI document based on the request, response and generated OpenAPI document. nestjs#2502
PR looks great! One minor thing - I'm wondering if we have any ideas other than |
You are right, I'm changing it. |
Rename the option as pointed out here. nestjs#2505 (comment)
Update the documentation based on nestjs/swagger#2505
LGTM |
docs(@nestjs/swagger): add `patchDocumentOnRequest` option based on nestjs/swagger#2505
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
It is impossible to patch the document after it is generated and before it is served.
Issue Number: #2502
What is the new behavior?
A new option
patchDocument
can be passed toSwaggerModule.setup
.Does this PR introduce a breaking change?
Other information