Closed rartych closed 8 months ago
@rartych Is there a guideline from Commonalities if operation tags should or should be not used? Are other sub projects using operation tags?
API Design Guidelines says that for each HTTP method (i.e operation) definition should include:
Tag list to classify methods.
In the global tag element each tag can have description and externalDocs property.
For further discussion on tags usage and style see: Commonalities issue #80
Problem description
Spectral linting rule operation-tag-defined produces warnings for qod-api.yaml like this:
Expected behavior Tags should be defined in a top-level
tags
elementAlternative solutions
Removing tags from operation objects in qod-api.yaml
Exclusion of this rule from future ruleset for CAMARA APIs as
tags
element is not required by OAShttps://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#fixed-fields
Additional context Spectral default OAS ruleset includes also:
openapi-tags-alphabetical
tag-description