Closed jpraet closed 5 months ago
https://github.com/belgif/rest-guide-example/blob/main/src/main/openapi/openapi.yaml uses UpperCamelCase (no spaces) e.g. "ReferenceData"
For readability, Capitalized Words look best to me.
I'd also recommend to list each tag in the "tags" root level openapi property. This isn't a requirement for OpenAPI, but it allows a styleguide validator to detect typos.
SwaggerUI displays an operation multiple times for each of its tags, which is quite confusing. Maybe we should limit to max one tag on each operation?
Conclusions REST WG:
I'll create a PR and create ticket to add rule to validator
PR #171 ready for review
PR has been merged and will be published next release.
Rule 34: https://www.belgif.be/specification/rest/api-guide/#openapi
But it does not talk about how to name tags.