question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pass the whole swagger/openapi spec into the operation files

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Vaelorcommented, Jun 15, 2018

Great 😃 I will get on it as soon as I can 😃

1reaction
Vaelorcommented, Jul 2, 2018

Thanks a lot! 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found