Closed mazumba closed 3 months ago
Thank you! 🔥
This has broken our API docs by Redocly. I'm not sure yet why but for now we're unsetting the tags property before we save it. unset($openapi->tags);
This has broken our API docs by Redocly. I'm not sure yet why but for now we're unsetting the tags property before we save it.
unset($openapi->tags);
Interesting - if you ever find out let me know. The latest change does remove unused ones - maybe that is the issue?
We use vacuum to validate our swagger file and for the api to be valid, the list of used tags is required.
If we only define the tags within a controller attribute, the endpoints are still correctly grouped by their tags but no
tags
list is added to theapi-docs
file.My proposal now is to always add the
tags
list to theapi-docs
file, whenever thetags
parameter is used in anyOperation
attribute. And when someone wants to add a description to a tag, theTag
attribute can be used as it already is.