Skip to content

Commit b29f144

Browse files
committed
Add schema to headers
1 parent 0898684 commit b29f144

File tree

11 files changed

+865
-20
lines changed

11 files changed

+865
-20
lines changed

src/Examples/JsonApiDotNetCoreExample/GeneratedSwagger/JsonApiDotNetCoreExample.json

Lines changed: 120 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
"ETag": {
4040
"description": "ETag identifying the version of the fetched resource.",
4141
"required": true,
42+
"schema": {
43+
"type": "string"
44+
},
4245
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
4346
}
4447
},
@@ -84,6 +87,9 @@
8487
"ETag": {
8588
"description": "ETag identifying the version of the fetched resource.",
8689
"required": true,
90+
"schema": {
91+
"type": "string"
92+
},
8793
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
8894
}
8995
}
@@ -134,7 +140,10 @@
134140
"headers": {
135141
"Location": {
136142
"description": "Location of the newly created resource.",
137-
"required": true
143+
"required": true,
144+
"schema": {
145+
"type": "string"
146+
}
138147
}
139148
},
140149
"content": {
@@ -201,6 +210,9 @@
201210
"ETag": {
202211
"description": "ETag identifying the version of the fetched resource.",
203212
"required": true,
213+
"schema": {
214+
"type": "string"
215+
},
204216
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
205217
}
206218
},
@@ -258,6 +270,9 @@
258270
"ETag": {
259271
"description": "ETag identifying the version of the fetched resource.",
260272
"required": true,
273+
"schema": {
274+
"type": "string"
275+
},
261276
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
262277
}
263278
}
@@ -407,6 +422,9 @@
407422
"ETag": {
408423
"description": "ETag identifying the version of the fetched resource.",
409424
"required": true,
425+
"schema": {
426+
"type": "string"
427+
},
410428
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
411429
}
412430
},
@@ -464,6 +482,9 @@
464482
"ETag": {
465483
"description": "ETag identifying the version of the fetched resource.",
466484
"required": true,
485+
"schema": {
486+
"type": "string"
487+
},
467488
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
468489
}
469490
}
@@ -515,6 +536,9 @@
515536
"ETag": {
516537
"description": "ETag identifying the version of the fetched resource.",
517538
"required": true,
539+
"schema": {
540+
"type": "string"
541+
},
518542
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
519543
}
520544
},
@@ -572,6 +596,9 @@
572596
"ETag": {
573597
"description": "ETag identifying the version of the fetched resource.",
574598
"required": true,
599+
"schema": {
600+
"type": "string"
601+
},
575602
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
576603
}
577604
}
@@ -761,6 +788,9 @@
761788
"ETag": {
762789
"description": "ETag identifying the version of the fetched resource.",
763790
"required": true,
791+
"schema": {
792+
"type": "string"
793+
},
764794
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
765795
}
766796
},
@@ -818,6 +848,9 @@
818848
"ETag": {
819849
"description": "ETag identifying the version of the fetched resource.",
820850
"required": true,
851+
"schema": {
852+
"type": "string"
853+
},
821854
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
822855
}
823856
}
@@ -869,6 +902,9 @@
869902
"ETag": {
870903
"description": "ETag identifying the version of the fetched resource.",
871904
"required": true,
905+
"schema": {
906+
"type": "string"
907+
},
872908
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
873909
}
874910
},
@@ -926,6 +962,9 @@
926962
"ETag": {
927963
"description": "ETag identifying the version of the fetched resource.",
928964
"required": true,
965+
"schema": {
966+
"type": "string"
967+
},
929968
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
930969
}
931970
}
@@ -1106,6 +1145,9 @@
11061145
"ETag": {
11071146
"description": "ETag identifying the version of the fetched resource.",
11081147
"required": true,
1148+
"schema": {
1149+
"type": "string"
1150+
},
11091151
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
11101152
}
11111153
},
@@ -1151,6 +1193,9 @@
11511193
"ETag": {
11521194
"description": "ETag identifying the version of the fetched resource.",
11531195
"required": true,
1196+
"schema": {
1197+
"type": "string"
1198+
},
11541199
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
11551200
}
11561201
}
@@ -1201,7 +1246,10 @@
12011246
"headers": {
12021247
"Location": {
12031248
"description": "Location of the newly created resource.",
1204-
"required": true
1249+
"required": true,
1250+
"schema": {
1251+
"type": "string"
1252+
}
12051253
}
12061254
},
12071255
"content": {
@@ -1268,6 +1316,9 @@
12681316
"ETag": {
12691317
"description": "ETag identifying the version of the fetched resource.",
12701318
"required": true,
1319+
"schema": {
1320+
"type": "string"
1321+
},
12711322
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
12721323
}
12731324
},
@@ -1325,6 +1376,9 @@
13251376
"ETag": {
13261377
"description": "ETag identifying the version of the fetched resource.",
13271378
"required": true,
1379+
"schema": {
1380+
"type": "string"
1381+
},
13281382
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
13291383
}
13301384
}
@@ -1474,6 +1528,9 @@
14741528
"ETag": {
14751529
"description": "ETag identifying the version of the fetched resource.",
14761530
"required": true,
1531+
"schema": {
1532+
"type": "string"
1533+
},
14771534
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
14781535
}
14791536
},
@@ -1531,6 +1588,9 @@
15311588
"ETag": {
15321589
"description": "ETag identifying the version of the fetched resource.",
15331590
"required": true,
1591+
"schema": {
1592+
"type": "string"
1593+
},
15341594
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
15351595
}
15361596
}
@@ -1582,6 +1642,9 @@
15821642
"ETag": {
15831643
"description": "ETag identifying the version of the fetched resource.",
15841644
"required": true,
1645+
"schema": {
1646+
"type": "string"
1647+
},
15851648
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
15861649
}
15871650
},
@@ -1639,6 +1702,9 @@
16391702
"ETag": {
16401703
"description": "ETag identifying the version of the fetched resource.",
16411704
"required": true,
1705+
"schema": {
1706+
"type": "string"
1707+
},
16421708
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
16431709
}
16441710
}
@@ -1819,6 +1885,9 @@
18191885
"ETag": {
18201886
"description": "ETag identifying the version of the fetched resource.",
18211887
"required": true,
1888+
"schema": {
1889+
"type": "string"
1890+
},
18221891
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
18231892
}
18241893
},
@@ -1864,6 +1933,9 @@
18641933
"ETag": {
18651934
"description": "ETag identifying the version of the fetched resource.",
18661935
"required": true,
1936+
"schema": {
1937+
"type": "string"
1938+
},
18671939
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
18681940
}
18691941
}
@@ -1914,7 +1986,10 @@
19141986
"headers": {
19151987
"Location": {
19161988
"description": "Location of the newly created resource.",
1917-
"required": true
1989+
"required": true,
1990+
"schema": {
1991+
"type": "string"
1992+
}
19181993
}
19191994
},
19201995
"content": {
@@ -1981,6 +2056,9 @@
19812056
"ETag": {
19822057
"description": "ETag identifying the version of the fetched resource.",
19832058
"required": true,
2059+
"schema": {
2060+
"type": "string"
2061+
},
19842062
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
19852063
}
19862064
},
@@ -2038,6 +2116,9 @@
20382116
"ETag": {
20392117
"description": "ETag identifying the version of the fetched resource.",
20402118
"required": true,
2119+
"schema": {
2120+
"type": "string"
2121+
},
20412122
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
20422123
}
20432124
}
@@ -2187,6 +2268,9 @@
21872268
"ETag": {
21882269
"description": "ETag identifying the version of the fetched resource.",
21892270
"required": true,
2271+
"schema": {
2272+
"type": "string"
2273+
},
21902274
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
21912275
}
21922276
},
@@ -2244,6 +2328,9 @@
22442328
"ETag": {
22452329
"description": "ETag identifying the version of the fetched resource.",
22462330
"required": true,
2331+
"schema": {
2332+
"type": "string"
2333+
},
22472334
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
22482335
}
22492336
}
@@ -2295,6 +2382,9 @@
22952382
"ETag": {
22962383
"description": "ETag identifying the version of the fetched resource.",
22972384
"required": true,
2385+
"schema": {
2386+
"type": "string"
2387+
},
22982388
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
22992389
}
23002390
},
@@ -2352,6 +2442,9 @@
23522442
"ETag": {
23532443
"description": "ETag identifying the version of the fetched resource.",
23542444
"required": true,
2445+
"schema": {
2446+
"type": "string"
2447+
},
23552448
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
23562449
}
23572450
}
@@ -2449,6 +2542,9 @@
24492542
"ETag": {
24502543
"description": "ETag identifying the version of the fetched resource.",
24512544
"required": true,
2545+
"schema": {
2546+
"type": "string"
2547+
},
24522548
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
24532549
}
24542550
},
@@ -2506,6 +2602,9 @@
25062602
"ETag": {
25072603
"description": "ETag identifying the version of the fetched resource.",
25082604
"required": true,
2605+
"schema": {
2606+
"type": "string"
2607+
},
25092608
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
25102609
}
25112610
}
@@ -2557,6 +2656,9 @@
25572656
"ETag": {
25582657
"description": "ETag identifying the version of the fetched resource.",
25592658
"required": true,
2659+
"schema": {
2660+
"type": "string"
2661+
},
25602662
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
25612663
}
25622664
},
@@ -2614,6 +2716,9 @@
26142716
"ETag": {
26152717
"description": "ETag identifying the version of the fetched resource.",
26162718
"required": true,
2719+
"schema": {
2720+
"type": "string"
2721+
},
26172722
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
26182723
}
26192724
}
@@ -2711,6 +2816,9 @@
27112816
"ETag": {
27122817
"description": "ETag identifying the version of the fetched resource.",
27132818
"required": true,
2819+
"schema": {
2820+
"type": "string"
2821+
},
27142822
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
27152823
}
27162824
},
@@ -2768,6 +2876,9 @@
27682876
"ETag": {
27692877
"description": "ETag identifying the version of the fetched resource.",
27702878
"required": true,
2879+
"schema": {
2880+
"type": "string"
2881+
},
27712882
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
27722883
}
27732884
}
@@ -2819,6 +2930,9 @@
28192930
"ETag": {
28202931
"description": "ETag identifying the version of the fetched resource.",
28212932
"required": true,
2933+
"schema": {
2934+
"type": "string"
2935+
},
28222936
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
28232937
}
28242938
},
@@ -2876,6 +2990,9 @@
28762990
"ETag": {
28772991
"description": "ETag identifying the version of the fetched resource.",
28782992
"required": true,
2993+
"schema": {
2994+
"type": "string"
2995+
},
28792996
"example": "\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
28802997
}
28812998
}

0 commit comments

Comments
 (0)