You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looked into this a little bit and it seems to be an issue with SwaggerUI and not Express OpenAPI (see: swagger-api/swagger-ui#5653). Using tags as an array of strings does not lead to any issues, but using tags as an array of objects results in a tag which looks like:
even though the JSON schema provided for tags (shown below) matches the example provided in: https://swagger.io/docs/specification/v3_0/grouping-operations-with-tags/
I added tests locally to confirm the tags are being passed properly which I can make a PR for if desired, but they seem to be passed to the schema without any modifications to the user's definition on this line:
Activity
wesleytodd commentedon Jan 16, 2025
PR Welcome!
Megapixel99 commentedon Feb 7, 2025
Looked into this a little bit and it seems to be an issue with SwaggerUI and not Express OpenAPI (see: swagger-api/swagger-ui#5653). Using tags as an array of strings does not lead to any issues, but using tags as an array of objects results in a tag which looks like:

even though the JSON schema provided for
tags(shown below) matches the example provided in: https://swagger.io/docs/specification/v3_0/grouping-operations-with-tags/I added tests locally to confirm the tags are being passed properly which I can make a PR for if desired, but they seem to be passed to the schema without any modifications to the user's definition on this line:
express-openapi/lib/generate-doc.js
Line 26 in b56f6ee
Add support for tags
Add support for tags