Skip to content

Commit

Permalink
[PFX-783] Docs: update swagger plugin docs on how to generate a new s…
Browse files Browse the repository at this point in the history
…wagger.json (#956)

* docs: added bit on running build to update swagger file

* chore: update package-lock
  • Loading branch information
jpina1-godaddy authored Nov 4, 2024
1 parent d0cd6dd commit e696767
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 3 deletions.
78 changes: 75 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/gasket-plugin-swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ By specifying the `swagger.jsdocs` options in the `gasket.js`, the
Swagger definition file will be generated with `npm run build`. It can be output
to either a JSON (default) or YAML file.

To keep your Swagger definition file up-to-date, you can run `npm run build` whenever you make changes to the swagger property in your
`gasket.js` file or modify JSDoc comments in your routes folder. This will rebuild the Swagger file to capture the latest updates accurately.

```js
// gasket.js

Expand Down

0 comments on commit e696767

Please sign in to comment.