feathersjs-ecosystem / feathers-swagger

Add documentation to your FeatherJS services and feed them to Swagger UI.
MIT License
225 stars 62 forks source link

Only create tags when they have been used #125

Closed EspadaV8 closed 5 years ago

EspadaV8 commented 5 years ago

Summary

Currently feathers-swagger will create a tag for any service that has been defined using the URL part for the service. This is fine as a default but it custom tags have been defined then the tag that gets added it's referenced by anything and you end up with a dangling tag. This causes an empty section when rendering the file with e.g. Redoc.

This PR instead only adds this default tag if no tags have been defined for a method in the docs.

Mairu commented 5 years ago

Tags will only be created when used in version 1.0.0