Skip to content

Commit 100c15d

Browse files
committed
feat: Fixed tests
1 parent 9700da8 commit 100c15d

File tree

30 files changed

+552
-422
lines changed

30 files changed

+552
-422
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"openapi": "3.1.0",
3+
"info": {
4+
"title": "Swagger Petstore - OpenAPI 3.1",
5+
"version": "1.0.12"
6+
},
7+
"paths": {
8+
"/path1": {
9+
"post": {
10+
"responses": {
11+
"200": {
12+
"$ref": "#/components/responses/response200",
13+
"description": "response description override"
14+
}
15+
}
16+
}
17+
}
18+
},
19+
"components": {
20+
"responses": {
21+
"response200": {
22+
"description": "response description from components",
23+
"content": {
24+
"application/json": {
25+
"schema": {
26+
"type": "object",
27+
"properties": {
28+
"id": {
29+
"type": "integer"
30+
}
31+
}
32+
}
33+
}
34+
}
35+
}
36+
}
37+
}
38+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"openapi": "3.0.4",
3+
"info": {
4+
"title": "Swagger Petstore - OpenAPI 3.1",
5+
"version": "1.0.12"
6+
},
7+
"paths": {
8+
"/path1": {
9+
"post": {
10+
"responses": {
11+
"200": {
12+
"$ref": "#/components/responses/response200"
13+
}
14+
}
15+
}
16+
}
17+
},
18+
"components": {
19+
"responses": {
20+
"response200": {
21+
"description": "response description from components",
22+
"content": {
23+
"application/json": {
24+
"schema": {
25+
"type": "object",
26+
"properties": {
27+
"id": {
28+
"type": "integer"
29+
}
30+
}
31+
}
32+
}
33+
}
34+
}
35+
}
36+
}
37+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"openapi": "3.1.0",
3+
"info": {
4+
"title": "test",
5+
"version": "0.1.0"
6+
},
7+
"paths": {
8+
"/path1": {
9+
"get": {
10+
"responses": {
11+
"200": {
12+
"description": "OK",
13+
"content": {
14+
"application/json": {
15+
"schema": {
16+
"$ref": "#/components/schemas/MySchema"
17+
}
18+
}
19+
}
20+
}
21+
}
22+
}
23+
}
24+
},
25+
"components": {
26+
"schemas": {
27+
"MySchema": {
28+
"anyOf": [
29+
{
30+
"type": "string"
31+
},
32+
{
33+
"type": "null"
34+
}
35+
]
36+
}
37+
}
38+
}
39+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"openapi": "3.0.4",
3+
"info": {
4+
"title": "test",
5+
"version": "0.1.0"
6+
},
7+
"paths": {
8+
"/path1": {
9+
"get": {
10+
"responses": {
11+
"200": {
12+
"description": "OK",
13+
"content": {
14+
"application/json": {
15+
"schema": {
16+
"$ref": "#/components/schemas/MySchema"
17+
}
18+
}
19+
}
20+
}
21+
}
22+
}
23+
}
24+
},
25+
"components": {
26+
"schemas": {
27+
"MySchema": {
28+
"type": "string",
29+
"nullable": true
30+
}
31+
}
32+
}
33+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"openapi": "3.1.0",
3+
"info": {
4+
"title": "test",
5+
"version": "0.1.0"
6+
},
7+
"paths": {
8+
"/path1": {
9+
"post": {
10+
"responses": {
11+
"200": {
12+
"description": "OK",
13+
"content": {
14+
"application/json": {
15+
"schema": {}
16+
}
17+
}
18+
}
19+
}
20+
}
21+
}
22+
}
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"openapi": "3.0.4",
3+
"info": {
4+
"title": "test",
5+
"version": "0.1.0"
6+
},
7+
"paths": {
8+
"/path1": {
9+
"post": {
10+
"responses": {
11+
"200": {
12+
"description": "OK",
13+
"content": {
14+
"application/json": {
15+
"schema": {}
16+
}
17+
}
18+
}
19+
}
20+
}
21+
}
22+
}
23+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"openapi": "3.1.0",
3+
"info": {
4+
"title": "test",
5+
"version": "0.1.0"
6+
},
7+
"paths": {
8+
"/path1": {
9+
"get": {
10+
"responses": {
11+
"200": {
12+
"description": "OK",
13+
"content": {
14+
"application/json": {
15+
"schema": {
16+
"anyOf": [
17+
{
18+
"type": "string"
19+
},
20+
{
21+
"type": "null"
22+
}
23+
]
24+
}
25+
}
26+
}
27+
}
28+
}
29+
}
30+
}
31+
}
32+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"openapi": "3.0.4",
3+
"info": {
4+
"title": "test",
5+
"version": "0.1.0"
6+
},
7+
"paths": {
8+
"/path1": {
9+
"get": {
10+
"responses": {
11+
"200": {
12+
"description": "OK",
13+
"content": {
14+
"application/json": {
15+
"schema": {
16+
"type": "string",
17+
"nullable": true
18+
}
19+
}
20+
}
21+
}
22+
}
23+
}
24+
}
25+
}
26+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"openapi": "3.1.0",
3+
"info": {
4+
"title": "test",
5+
"version": "0.1.0"
6+
},
7+
"paths": {
8+
"/path1": {
9+
"get": {
10+
"responses": {
11+
"200": {
12+
"description": "OK",
13+
"content": {
14+
"application/json": {
15+
"schema": {
16+
"type": "null"
17+
}
18+
}
19+
}
20+
}
21+
}
22+
}
23+
}
24+
}
25+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"openapi": "3.0.4",
3+
"info": {
4+
"title": "test",
5+
"version": "0.1.0"
6+
},
7+
"paths": {
8+
"/path1": {
9+
"get": {
10+
"responses": {
11+
"200": {
12+
"description": "OK",
13+
"content": {
14+
"application/json": {
15+
"schema": {
16+
"type": "string",
17+
"nullable": true
18+
}
19+
}
20+
}
21+
}
22+
}
23+
}
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)