Skip to content

Commit 561e2d0

Browse files
authored
Apply suggestions from code review
1 parent 61ac15c commit 561e2d0

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.changeset/orange-ghosts-hug.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"@redocly/openapi-core": major
33
---
44

5-
- Added the `tags-duplicated-names` rule to check for duplications in the `tags` field in API descriptions.
5+
- Added the `no-duplicated-tag-names` rule to check for duplications in the `tags` field in API descriptions.

docs/@v2/rules/async/tags-duplicated-names.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ This rule prevents duplication of tag names which could lead to inconsistent API
1010

1111
## API design principles
1212

13-
Tags are used to group operations in AsyncAPI specifications. Each tag should be unique to clearly categorize operations.
13+
Tags are used to group operations in AsyncAPI specifications.
14+
Create unique tags to clearly categorize operations.
1415
Having duplicate tags can cause confusion in documentation rendering tools, makes the specification harder to maintain,
1516
and may lead to operations being grouped incorrectly.
1617

@@ -70,7 +71,7 @@ tags:
7071
description: Operations about user
7172
```
7273
73-
With **ignoreCase: true**, this would also be incorrect:
74+
With `ignoreCase: true`, this would also be incorrect:
7475

7576
```yaml
7677
tags:

docs/@v2/rules/oas/tags-duplicated-names.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ This rule prevents duplication of tag names which could lead to inconsistent API
1515

1616
## API design principles
1717

18-
Tags are used to group operations in OpenAPI specifications. Each tag should be unique to clearly categorize operations.
18+
Tags are used to group operations in OpenAPI specifications.
19+
Create unique tags to clearly categorize operations.
1920
Having duplicate tags can cause confusion in documentation rendering tools, makes the specification harder to maintain,
2021
and may lead to operations being grouped incorrectly.
2122

@@ -75,7 +76,7 @@ tags:
7576
description: Operations about user
7677
```
7778
78-
With **ignoreCase: true**, this would also be incorrect:
79+
With `ignoreCase: true`, this would also be incorrect:
7980

8081
```yaml
8182
tags:

0 commit comments

Comments
 (0)