Skip to content

Commit dbf9153

Browse files
committed
Fix test
1 parent 3be3912 commit dbf9153

File tree

9 files changed

+256
-16
lines changed

9 files changed

+256
-16
lines changed

test/OpenApiClientTests/NamingConventions/CamelCase/swagger.g.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"headers": {
3939
"ETag": {
4040
"description": "ETag identifying the version of the fetched resource.",
41+
"required": true,
4142
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
4243
}
4344
},
@@ -89,6 +90,7 @@
8990
"headers": {
9091
"ETag": {
9192
"description": "ETag identifying the version of the fetched resource.",
93+
"required": true,
9294
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
9395
}
9496
}
@@ -138,7 +140,8 @@
138140
"description": "The staffMember was successfully created, which resulted in additional changes. The newly created staffMember is returned.",
139141
"headers": {
140142
"Location": {
141-
"description": "Location of the newly created resource."
143+
"description": "Location of the newly created resource.",
144+
"required": true
142145
}
143146
},
144147
"content": {
@@ -232,6 +235,7 @@
232235
"headers": {
233236
"ETag": {
234237
"description": "ETag identifying the version of the fetched resource.",
238+
"required": true,
235239
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
236240
}
237241
},
@@ -302,6 +306,7 @@
302306
"headers": {
303307
"ETag": {
304308
"description": "ETag identifying the version of the fetched resource.",
309+
"required": true,
305310
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
306311
}
307312
}
@@ -476,6 +481,7 @@
476481
"headers": {
477482
"ETag": {
478483
"description": "ETag identifying the version of the fetched resource.",
484+
"required": true,
479485
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
480486
}
481487
},
@@ -527,6 +533,7 @@
527533
"headers": {
528534
"ETag": {
529535
"description": "ETag identifying the version of the fetched resource.",
536+
"required": true,
530537
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
531538
}
532539
}
@@ -576,7 +583,8 @@
576583
"description": "The supermarket was successfully created, which resulted in additional changes. The newly created supermarket is returned.",
577584
"headers": {
578585
"Location": {
579-
"description": "Location of the newly created resource."
586+
"description": "Location of the newly created resource.",
587+
"required": true
580588
}
581589
},
582590
"content": {
@@ -670,6 +678,7 @@
670678
"headers": {
671679
"ETag": {
672680
"description": "ETag identifying the version of the fetched resource.",
681+
"required": true,
673682
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
674683
}
675684
},
@@ -740,6 +749,7 @@
740749
"headers": {
741750
"ETag": {
742751
"description": "ETag identifying the version of the fetched resource.",
752+
"required": true,
743753
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
744754
}
745755
}
@@ -923,6 +933,7 @@
923933
"headers": {
924934
"ETag": {
925935
"description": "ETag identifying the version of the fetched resource.",
936+
"required": true,
926937
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
927938
}
928939
},
@@ -993,6 +1004,7 @@
9931004
"headers": {
9941005
"ETag": {
9951006
"description": "ETag identifying the version of the fetched resource.",
1007+
"required": true,
9961008
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
9971009
}
9981010
}
@@ -1043,6 +1055,7 @@
10431055
"headers": {
10441056
"ETag": {
10451057
"description": "ETag identifying the version of the fetched resource.",
1058+
"required": true,
10461059
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
10471060
}
10481061
},
@@ -1113,6 +1126,7 @@
11131126
"headers": {
11141127
"ETag": {
11151128
"description": "ETag identifying the version of the fetched resource.",
1129+
"required": true,
11161130
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
11171131
}
11181132
}
@@ -1230,6 +1244,7 @@
12301244
"headers": {
12311245
"ETag": {
12321246
"description": "ETag identifying the version of the fetched resource.",
1247+
"required": true,
12331248
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
12341249
}
12351250
},
@@ -1300,6 +1315,7 @@
13001315
"headers": {
13011316
"ETag": {
13021317
"description": "ETag identifying the version of the fetched resource.",
1318+
"required": true,
13031319
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
13041320
}
13051321
}
@@ -1350,6 +1366,7 @@
13501366
"headers": {
13511367
"ETag": {
13521368
"description": "ETag identifying the version of the fetched resource.",
1369+
"required": true,
13531370
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
13541371
}
13551372
},
@@ -1420,6 +1437,7 @@
14201437
"headers": {
14211438
"ETag": {
14221439
"description": "ETag identifying the version of the fetched resource.",
1440+
"required": true,
14231441
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
14241442
}
14251443
}
@@ -1671,6 +1689,7 @@
16711689
"headers": {
16721690
"ETag": {
16731691
"description": "ETag identifying the version of the fetched resource.",
1692+
"required": true,
16741693
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
16751694
}
16761695
},
@@ -1741,6 +1760,7 @@
17411760
"headers": {
17421761
"ETag": {
17431762
"description": "ETag identifying the version of the fetched resource.",
1763+
"required": true,
17441764
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
17451765
}
17461766
}
@@ -1791,6 +1811,7 @@
17911811
"headers": {
17921812
"ETag": {
17931813
"description": "ETag identifying the version of the fetched resource.",
1814+
"required": true,
17941815
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
17951816
}
17961817
},
@@ -1861,6 +1882,7 @@
18611882
"headers": {
18621883
"ETag": {
18631884
"description": "ETag identifying the version of the fetched resource.",
1885+
"required": true,
18641886
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
18651887
}
18661888
}

test/OpenApiClientTests/NamingConventions/KebabCase/swagger.g.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"headers": {
3939
"ETag": {
4040
"description": "ETag identifying the version of the fetched resource.",
41+
"required": true,
4142
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
4243
}
4344
},
@@ -89,6 +90,7 @@
8990
"headers": {
9091
"ETag": {
9192
"description": "ETag identifying the version of the fetched resource.",
93+
"required": true,
9294
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
9395
}
9496
}
@@ -138,7 +140,8 @@
138140
"description": "The staff-member was successfully created, which resulted in additional changes. The newly created staff-member is returned.",
139141
"headers": {
140142
"Location": {
141-
"description": "Location of the newly created resource."
143+
"description": "Location of the newly created resource.",
144+
"required": true
142145
}
143146
},
144147
"content": {
@@ -232,6 +235,7 @@
232235
"headers": {
233236
"ETag": {
234237
"description": "ETag identifying the version of the fetched resource.",
238+
"required": true,
235239
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
236240
}
237241
},
@@ -302,6 +306,7 @@
302306
"headers": {
303307
"ETag": {
304308
"description": "ETag identifying the version of the fetched resource.",
309+
"required": true,
305310
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
306311
}
307312
}
@@ -476,6 +481,7 @@
476481
"headers": {
477482
"ETag": {
478483
"description": "ETag identifying the version of the fetched resource.",
484+
"required": true,
479485
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
480486
}
481487
},
@@ -527,6 +533,7 @@
527533
"headers": {
528534
"ETag": {
529535
"description": "ETag identifying the version of the fetched resource.",
536+
"required": true,
530537
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
531538
}
532539
}
@@ -576,7 +583,8 @@
576583
"description": "The supermarket was successfully created, which resulted in additional changes. The newly created supermarket is returned.",
577584
"headers": {
578585
"Location": {
579-
"description": "Location of the newly created resource."
586+
"description": "Location of the newly created resource.",
587+
"required": true
580588
}
581589
},
582590
"content": {
@@ -670,6 +678,7 @@
670678
"headers": {
671679
"ETag": {
672680
"description": "ETag identifying the version of the fetched resource.",
681+
"required": true,
673682
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
674683
}
675684
},
@@ -740,6 +749,7 @@
740749
"headers": {
741750
"ETag": {
742751
"description": "ETag identifying the version of the fetched resource.",
752+
"required": true,
743753
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
744754
}
745755
}
@@ -923,6 +933,7 @@
923933
"headers": {
924934
"ETag": {
925935
"description": "ETag identifying the version of the fetched resource.",
936+
"required": true,
926937
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
927938
}
928939
},
@@ -993,6 +1004,7 @@
9931004
"headers": {
9941005
"ETag": {
9951006
"description": "ETag identifying the version of the fetched resource.",
1007+
"required": true,
9961008
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
9971009
}
9981010
}
@@ -1043,6 +1055,7 @@
10431055
"headers": {
10441056
"ETag": {
10451057
"description": "ETag identifying the version of the fetched resource.",
1058+
"required": true,
10461059
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
10471060
}
10481061
},
@@ -1113,6 +1126,7 @@
11131126
"headers": {
11141127
"ETag": {
11151128
"description": "ETag identifying the version of the fetched resource.",
1129+
"required": true,
11161130
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
11171131
}
11181132
}
@@ -1230,6 +1244,7 @@
12301244
"headers": {
12311245
"ETag": {
12321246
"description": "ETag identifying the version of the fetched resource.",
1247+
"required": true,
12331248
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
12341249
}
12351250
},
@@ -1300,6 +1315,7 @@
13001315
"headers": {
13011316
"ETag": {
13021317
"description": "ETag identifying the version of the fetched resource.",
1318+
"required": true,
13031319
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
13041320
}
13051321
}
@@ -1350,6 +1366,7 @@
13501366
"headers": {
13511367
"ETag": {
13521368
"description": "ETag identifying the version of the fetched resource.",
1369+
"required": true,
13531370
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
13541371
}
13551372
},
@@ -1420,6 +1437,7 @@
14201437
"headers": {
14211438
"ETag": {
14221439
"description": "ETag identifying the version of the fetched resource.",
1440+
"required": true,
14231441
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
14241442
}
14251443
}
@@ -1671,6 +1689,7 @@
16711689
"headers": {
16721690
"ETag": {
16731691
"description": "ETag identifying the version of the fetched resource.",
1692+
"required": true,
16741693
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
16751694
}
16761695
},
@@ -1741,6 +1760,7 @@
17411760
"headers": {
17421761
"ETag": {
17431762
"description": "ETag identifying the version of the fetched resource.",
1763+
"required": true,
17441764
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
17451765
}
17461766
}
@@ -1791,6 +1811,7 @@
17911811
"headers": {
17921812
"ETag": {
17931813
"description": "ETag identifying the version of the fetched resource.",
1814+
"required": true,
17941815
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
17951816
}
17961817
},
@@ -1861,6 +1882,7 @@
18611882
"headers": {
18621883
"ETag": {
18631884
"description": "ETag identifying the version of the fetched resource.",
1885+
"required": true,
18641886
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
18651887
}
18661888
}

0 commit comments

Comments
 (0)