Pass the whole swagger/openapi spec into the operation files
See original GitHub issueI currently have a case where it would make my life easier if I had access to other parts of the swagger spec (like components
) in an operation file (___.js
).
The only context I have there is ‘operation’.
Do you think it makes sense to include that there? (if I happen to have the time for it, I could also implement it)
I would assume https://github.com/fmvilas/swagger-node-codegen/blob/master/lib/codegen.js#L76 would be a place to start (next to operation also provide the whole openapi object, so existing implementations wouldn’t break ofc)
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Paths and Operations - Swagger
OpenAPI 3.0 supports operation parameters passed via path, query string, headers, and cookies. You can also define the request body for operations that...
Read more >How to split a large OpenAPI document into multiple files
This guide assumes that you're familiar with the OpenAPI Specification 3.0 (previously known as Swagger). If you haven't worked with the ...
Read more >ReadMe: OpenAPI and Swagger for API Documentation
Swagger and OpenAPI are API description formats that provide a common framework for teams to build and document APIs. These machine-readable ...
Read more >Using OpenAPI and Swagger UI - Quarkus
The static file to serve must be a valid document conforming to the OpenAPI specification. An OpenAPI document that conforms to the OpenAPI...
Read more >OpenAPI 3.0 Tutorial | SwaggerHub Documentation
OpenAPI Specification (formerly known as Swagger Specification) is an open-source format for describing and documenting APIs. The Specification ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great 😃 I will get on it as soon as I can 😃
Thanks a lot! 😃