Skip to content

Commit 61ac15c

Browse files
fix: e2e test
1 parent f312422 commit 61ac15c

File tree

2 files changed

+25
-16
lines changed

2 files changed

+25
-16
lines changed
Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,33 @@
1-
swagger: '2.0'
1+
openapi: 3.0.2
22
info:
33
title: Tags Duplicated Names Test
44
version: '1.0.0'
5-
paths: {}
65
tags:
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
Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
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

152
validating openapi.yaml...
163
openapi.yaml: validated in <test>ms
174

18-
OpenAPI description has 1 error.
5+
Woohoo! Your API description is valid. 🎉
6+

0 commit comments

Comments
 (0)