Skip to content

Commit 0898684

Browse files
committed
Fix test
1 parent 9ba9ac2 commit 0898684

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
},
@@ -82,6 +83,7 @@
8283
"headers": {
8384
"ETag": {
8485
"description": "ETag identifying the version of the fetched resource.",
86+
"required": true,
8587
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
8688
}
8789
}
@@ -131,7 +133,8 @@
131133
"description": "The staffMember was successfully created, which resulted in additional changes. The newly created staffMember is returned.",
132134
"headers": {
133135
"Location": {
134-
"description": "Location of the newly created resource."
136+
"description": "Location of the newly created resource.",
137+
"required": true
135138
}
136139
},
137140
"content": {
@@ -197,6 +200,7 @@
197200
"headers": {
198201
"ETag": {
199202
"description": "ETag identifying the version of the fetched resource.",
203+
"required": true,
200204
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
201205
}
202206
},
@@ -253,6 +257,7 @@
253257
"headers": {
254258
"ETag": {
255259
"description": "ETag identifying the version of the fetched resource.",
260+
"required": true,
256261
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
257262
}
258263
}
@@ -392,6 +397,7 @@
392397
"headers": {
393398
"ETag": {
394399
"description": "ETag identifying the version of the fetched resource.",
400+
"required": true,
395401
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
396402
}
397403
},
@@ -436,6 +442,7 @@
436442
"headers": {
437443
"ETag": {
438444
"description": "ETag identifying the version of the fetched resource.",
445+
"required": true,
439446
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
440447
}
441448
}
@@ -485,7 +492,8 @@
485492
"description": "The supermarket was successfully created, which resulted in additional changes. The newly created supermarket is returned.",
486493
"headers": {
487494
"Location": {
488-
"description": "Location of the newly created resource."
495+
"description": "Location of the newly created resource.",
496+
"required": true
489497
}
490498
},
491499
"content": {
@@ -551,6 +559,7 @@
551559
"headers": {
552560
"ETag": {
553561
"description": "ETag identifying the version of the fetched resource.",
562+
"required": true,
554563
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
555564
}
556565
},
@@ -607,6 +616,7 @@
607616
"headers": {
608617
"ETag": {
609618
"description": "ETag identifying the version of the fetched resource.",
619+
"required": true,
610620
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
611621
}
612622
}
@@ -755,6 +765,7 @@
755765
"headers": {
756766
"ETag": {
757767
"description": "ETag identifying the version of the fetched resource.",
768+
"required": true,
758769
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
759770
}
760771
},
@@ -811,6 +822,7 @@
811822
"headers": {
812823
"ETag": {
813824
"description": "ETag identifying the version of the fetched resource.",
825+
"required": true,
814826
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
815827
}
816828
}
@@ -861,6 +873,7 @@
861873
"headers": {
862874
"ETag": {
863875
"description": "ETag identifying the version of the fetched resource.",
876+
"required": true,
864877
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
865878
}
866879
},
@@ -917,6 +930,7 @@
917930
"headers": {
918931
"ETag": {
919932
"description": "ETag identifying the version of the fetched resource.",
933+
"required": true,
920934
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
921935
}
922936
}
@@ -1013,6 +1027,7 @@
10131027
"headers": {
10141028
"ETag": {
10151029
"description": "ETag identifying the version of the fetched resource.",
1030+
"required": true,
10161031
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
10171032
}
10181033
},
@@ -1069,6 +1084,7 @@
10691084
"headers": {
10701085
"ETag": {
10711086
"description": "ETag identifying the version of the fetched resource.",
1087+
"required": true,
10721088
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
10731089
}
10741090
}
@@ -1119,6 +1135,7 @@
11191135
"headers": {
11201136
"ETag": {
11211137
"description": "ETag identifying the version of the fetched resource.",
1138+
"required": true,
11221139
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
11231140
}
11241141
},
@@ -1175,6 +1192,7 @@
11751192
"headers": {
11761193
"ETag": {
11771194
"description": "ETag identifying the version of the fetched resource.",
1195+
"required": true,
11781196
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
11791197
}
11801198
}
@@ -1363,6 +1381,7 @@
13631381
"headers": {
13641382
"ETag": {
13651383
"description": "ETag identifying the version of the fetched resource.",
1384+
"required": true,
13661385
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
13671386
}
13681387
},
@@ -1419,6 +1438,7 @@
14191438
"headers": {
14201439
"ETag": {
14211440
"description": "ETag identifying the version of the fetched resource.",
1441+
"required": true,
14221442
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
14231443
}
14241444
}
@@ -1469,6 +1489,7 @@
14691489
"headers": {
14701490
"ETag": {
14711491
"description": "ETag identifying the version of the fetched resource.",
1492+
"required": true,
14721493
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
14731494
}
14741495
},
@@ -1525,6 +1546,7 @@
15251546
"headers": {
15261547
"ETag": {
15271548
"description": "ETag identifying the version of the fetched resource.",
1549+
"required": true,
15281550
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
15291551
}
15301552
}

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
},
@@ -82,6 +83,7 @@
8283
"headers": {
8384
"ETag": {
8485
"description": "ETag identifying the version of the fetched resource.",
86+
"required": true,
8587
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
8688
}
8789
}
@@ -131,7 +133,8 @@
131133
"description": "The staff-member was successfully created, which resulted in additional changes. The newly created staff-member is returned.",
132134
"headers": {
133135
"Location": {
134-
"description": "Location of the newly created resource."
136+
"description": "Location of the newly created resource.",
137+
"required": true
135138
}
136139
},
137140
"content": {
@@ -197,6 +200,7 @@
197200
"headers": {
198201
"ETag": {
199202
"description": "ETag identifying the version of the fetched resource.",
203+
"required": true,
200204
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
201205
}
202206
},
@@ -253,6 +257,7 @@
253257
"headers": {
254258
"ETag": {
255259
"description": "ETag identifying the version of the fetched resource.",
260+
"required": true,
256261
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
257262
}
258263
}
@@ -392,6 +397,7 @@
392397
"headers": {
393398
"ETag": {
394399
"description": "ETag identifying the version of the fetched resource.",
400+
"required": true,
395401
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
396402
}
397403
},
@@ -436,6 +442,7 @@
436442
"headers": {
437443
"ETag": {
438444
"description": "ETag identifying the version of the fetched resource.",
445+
"required": true,
439446
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
440447
}
441448
}
@@ -485,7 +492,8 @@
485492
"description": "The supermarket was successfully created, which resulted in additional changes. The newly created supermarket is returned.",
486493
"headers": {
487494
"Location": {
488-
"description": "Location of the newly created resource."
495+
"description": "Location of the newly created resource.",
496+
"required": true
489497
}
490498
},
491499
"content": {
@@ -551,6 +559,7 @@
551559
"headers": {
552560
"ETag": {
553561
"description": "ETag identifying the version of the fetched resource.",
562+
"required": true,
554563
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
555564
}
556565
},
@@ -607,6 +616,7 @@
607616
"headers": {
608617
"ETag": {
609618
"description": "ETag identifying the version of the fetched resource.",
619+
"required": true,
610620
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
611621
}
612622
}
@@ -755,6 +765,7 @@
755765
"headers": {
756766
"ETag": {
757767
"description": "ETag identifying the version of the fetched resource.",
768+
"required": true,
758769
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
759770
}
760771
},
@@ -811,6 +822,7 @@
811822
"headers": {
812823
"ETag": {
813824
"description": "ETag identifying the version of the fetched resource.",
825+
"required": true,
814826
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
815827
}
816828
}
@@ -861,6 +873,7 @@
861873
"headers": {
862874
"ETag": {
863875
"description": "ETag identifying the version of the fetched resource.",
876+
"required": true,
864877
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
865878
}
866879
},
@@ -917,6 +930,7 @@
917930
"headers": {
918931
"ETag": {
919932
"description": "ETag identifying the version of the fetched resource.",
933+
"required": true,
920934
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
921935
}
922936
}
@@ -1013,6 +1027,7 @@
10131027
"headers": {
10141028
"ETag": {
10151029
"description": "ETag identifying the version of the fetched resource.",
1030+
"required": true,
10161031
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
10171032
}
10181033
},
@@ -1069,6 +1084,7 @@
10691084
"headers": {
10701085
"ETag": {
10711086
"description": "ETag identifying the version of the fetched resource.",
1087+
"required": true,
10721088
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
10731089
}
10741090
}
@@ -1119,6 +1135,7 @@
11191135
"headers": {
11201136
"ETag": {
11211137
"description": "ETag identifying the version of the fetched resource.",
1138+
"required": true,
11221139
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
11231140
}
11241141
},
@@ -1175,6 +1192,7 @@
11751192
"headers": {
11761193
"ETag": {
11771194
"description": "ETag identifying the version of the fetched resource.",
1195+
"required": true,
11781196
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
11791197
}
11801198
}
@@ -1363,6 +1381,7 @@
13631381
"headers": {
13641382
"ETag": {
13651383
"description": "ETag identifying the version of the fetched resource.",
1384+
"required": true,
13661385
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
13671386
}
13681387
},
@@ -1419,6 +1438,7 @@
14191438
"headers": {
14201439
"ETag": {
14211440
"description": "ETag identifying the version of the fetched resource.",
1441+
"required": true,
14221442
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
14231443
}
14241444
}
@@ -1469,6 +1489,7 @@
14691489
"headers": {
14701490
"ETag": {
14711491
"description": "ETag identifying the version of the fetched resource.",
1492+
"required": true,
14721493
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
14731494
}
14741495
},
@@ -1525,6 +1546,7 @@
15251546
"headers": {
15261547
"ETag": {
15271548
"description": "ETag identifying the version of the fetched resource.",
1549+
"required": true,
15281550
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
15291551
}
15301552
}

0 commit comments

Comments
 (0)