File tree Expand file tree Collapse file tree 2 files changed +25
-16
lines changed
__tests__/lint/tags-duplicated-names Expand file tree Collapse file tree 2 files changed +25
-16
lines changed Original file line number Diff line number Diff line change 1- swagger : ' 2.0 '
1+ openapi : 3.0.2
22info :
33 title : Tags Duplicated Names Test
44 version : ' 1.0.0'
5- paths : {}
65tags :
76 - name : pet
87 description : Everything about your Pets
98 - name : store
109 description : Access to Petstore orders
1110 - name : store
1211 description : YOU DO NOT SEE THIS
12+ paths :
13+ /pet :
14+ get :
15+ summary : Get a pet
16+ operationId : getPet
17+ responses :
18+ ' 200 ' :
19+ description : OK
20+ /store :
21+ get :
22+ summary : Get store info
23+ operationId : getStore
24+ responses :
25+ ' 200 ' :
26+ description : OK
27+ /store2 :
28+ get :
29+ summary : Get store info 2
30+ operationId : getStore2
31+ responses :
32+ ' 200 ' :
33+ description : OK
Original file line number Diff line number Diff line change 1- [1] openapi.yaml:9:3 at #/tags/2
2-
3- Duplicate tag name found: 'store'.
4-
5- 7 | - name: store
6- 8 | description: Access to Petstore orders
7- 9 | - name: store
8- | ^^^^^^^^^^^
9- 10 | description: YOU DO NOT SEE THIS HEHE
10- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11-
12- Warning was generated by the tags-duplicated-names rule.
13-
141
152validating openapi.yaml...
163openapi.yaml: validated in <test>ms
174
18- OpenAPI description has 1 error.
5+ Woohoo! Your API description is valid. 🎉
6+
You can’t perform that action at this time.
0 commit comments