NodeJS : Publish Swagger Specification as a package

Nikhil Nanjappa
5 min readFeb 27, 2019

In this article, I’m going to discuss a recommended approach to maintain a Swagger document which involves separately validating, testing and publishing it as a npm package.

Most of the people reading this article might have already come across Swagger Specification, which was a while back renamed to OpenAPI Specification.

When it comes to Swagger spec, I always recommend maintaining a separate repository.

The advantages of this approach (as explained in detail in this article) are, that the…

--

--

Nikhil Nanjappa

Experienced Full-Stack Developer who loves sharing knowledge. Gaming & Music addict. Always grateful and looking for new experiences in life.