-
Notifications
You must be signed in to change notification settings - Fork 446
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 support for Swagger/OpenAPI Extensions #195
Comments
Some solution can be done locally in the application without changes in nest/swagger My goal was to add custom swagger parameters to request body (decorator ApiModelProperty)
|
I don't think the solution above works as a This also blocking me from using nest. I need to publish an API and the API gateway needs a custom property in the swagger definition. |
It is not the ideal solution... import * as _ from 'lodash'; _.forEach(document.paths, function(path) { SwaggerModule.setup('swagger', app, document); |
Hey guys, any news about this issue? |
@CesarBMartinez I'll take a look into it and see if I can raise a PR. |
…corator feat(api-extension): add support for open api extensions via decorator (#195)
Added in 4.3.0. We're tracking PR to the docs here nestjs/docs.nestjs.com#1021 |
@kamilmysliwiec this does not work if the extension value is a not an object.
|
cc @tomchinery Can you take a look? |
For root level vendor extensions should I create a new issue? I'm trying to integrate redoc with tag-groups and those are exposed as root level vendor extensions: https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md#redoc-vendor-extensions |
@tomchinery any news about the problem with values as strings? |
@andreoav @kamilmysliwiec Apologies I've been away for the past week. I'll take a look at this today. |
Hi @tomchinery any news about the issue reported by @andreoav? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm submitting a...
Current behavior
There are no decorators for the Open Api Extensions
Swagger Doc
Java Decorator Example
Expected behavior
This is an example of this decorator in Java Swagger module
That produces this output in the swagger.json file:
What is the motivation / use case for changing the behavior?
At this time this is blocking because we need this extension in order to use the swagger.json to generate Amazon API Gateway definition files
I did not find any doc on how to create/extend existing decorators, if you point me to the right direction i can try to implement it
Thank you for your amazing work
The text was updated successfully, but these errors were encountered: