Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit 4ba9331

Browse files
author
Phil Sturgeon
committed
Swagger Examples E2E tests fail...
1 parent 5870855 commit 4ba9331

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

testing/e2e/swagger2-internal/input.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
"required": true,
238238
"type": "integer",
239239
"format": "int64",
240-
"x-example": 12356789
240+
"x-example": 123456789
241241
}
242242
],
243243
"responses": {
@@ -345,7 +345,8 @@
345345
"description": "Pet id to delete",
346346
"required": true,
347347
"type": "integer",
348-
"format": "int64"
348+
"format": "int64",
349+
"x-example": 12345
349350
}
350351
],
351352
"responses": {
@@ -417,7 +418,8 @@
417418
"name": "orderId",
418419
"description": "ID of purchase order that needs to be fetched",
419420
"required": true,
420-
"type": "string"
421+
"type": "string",
422+
"example": "15"
421423
}
422424
],
423425
"responses": {

testing/e2e/swagger2-internal/output.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,9 @@
13471347
"key": "petId",
13481348
"name": "petId",
13491349
"description": "ID of pet that needs to be fetched",
1350-
"examples": [123456789],
1350+
"examples": [
1351+
123456789
1352+
],
13511353
"type": "integer",
13521354
"format": null,
13531355
"default": null,
@@ -1439,7 +1441,9 @@
14391441
"key": "petId",
14401442
"name": "petId",
14411443
"description": "ID of pet that needs to be fetched",
1442-
"examples": [],
1444+
"examples": [
1445+
123456789
1446+
],
14431447
"type": "integer",
14441448
"format": null,
14451449
"default": null,
@@ -2100,7 +2104,9 @@
21002104
"key": "petId",
21012105
"name": "petId",
21022106
"description": "Pet id to delete",
2103-
"examples": [],
2107+
"examples": [
2108+
12345
2109+
],
21042110
"type": "integer",
21052111
"format": null,
21062112
"default": null,
@@ -2634,7 +2640,9 @@
26342640
"key": "orderId",
26352641
"name": "orderId",
26362642
"description": "ID of purchase order that needs to be fetched",
2637-
"examples": [],
2643+
"examples": [
2644+
"15"
2645+
],
26382646
"type": "string",
26392647
"format": null,
26402648
"default": null,
@@ -2726,7 +2734,9 @@
27262734
"key": "orderId",
27272735
"name": "orderId",
27282736
"description": "ID of purchase order that needs to be fetched",
2729-
"examples": [],
2737+
"examples": [
2738+
"15"
2739+
],
27302740
"type": "string",
27312741
"format": null,
27322742
"default": null,

0 commit comments

Comments
 (0)