Skip to content

Add rule to check uniqueness of tags.*.name #2103

@magicmatatjahu

Description

@magicmatatjahu

User story.
As a user, I want to know if the tags defined in my AsyncAPI document (in any place) have a unique names.

Is your feature request related to a problem?
The following AsyncAPI document is invalid and Spectral should throw errors due to non-uniqueness of tags.*.name.

asyncapi: '2.3.0'
...

tags:
  - name: someTag
    ...
  - name: someTag
    ...

Additional context
Part of #2100

Metadata

Metadata

Labels

AsyncAPIIssues related to the AsyncAPI rulesetenhancementNew feature or requestreleased

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions