Skip to content

Allows filtering of swagger.yml for multi target documentation

License

Notifications You must be signed in to change notification settings

MapcreatorIO/swagger-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swagger-filter

Allows filtering of swagger.yml for multi target documentation using extensions.

# removes all extensions (x-*)
swagger-filter -i petstore.yml -o petstore-clean.yml --remove-extensions
# filters out x-debug: true and x-internal: true
swagger-filter -i petstore.yml -o petstore-production.yml --exclude debug --exclude internal
# stdin & stdout by default
cat petstore.yml | swagger-filter --remove-extensions > petstore-clean.yml

About

Allows filtering of swagger.yml for multi target documentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages