Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 843 Bytes

README.md

File metadata and controls

34 lines (19 loc) · 843 Bytes

swagger-mod-security

Modifies an existing swagger document using filters operating on the security section of paths.

Currently the only supported filter is includeOnly.

See https://github.com/pwelagedara/swagger-mod for filters operating on other fields.

Available filters

includeOnly

Returns a swagger document including only the paths containing the specified roles. This can only operate on one type of security at a time.

Examples

See the examples directory.

Publishing

Run yarn version to run tests, bump the version, push branch/tags & publish new version.

You will need to be logged in to do this: yarn login.

yarn version --<patch|minor|major>

See https://yarnpkg.com/en/docs/cli/version for more information.

License

MIT License.