Skip to content

Commit 79416b1

Browse files
committed
feat: parse req/res headers
1 parent af65620 commit 79416b1

File tree

5 files changed

+3095
-98
lines changed

5 files changed

+3095
-98
lines changed

samples/externals.json

+108
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,18 @@
9292
]
9393
}
9494
}
95+
},
96+
"headers": {
97+
"type": "object",
98+
"properties": {
99+
"x-correlator": {
100+
"description": "Correlation id for the different services",
101+
"type": "string"
102+
}
103+
},
104+
"required": [
105+
"x-correlator"
106+
]
95107
}
96108
}
97109
}
@@ -189,6 +201,18 @@
189201
}
190202
}
191203
}
204+
},
205+
"headers": {
206+
"type": "object",
207+
"properties": {
208+
"x-correlator": {
209+
"description": "Correlation id for the different services",
210+
"type": "string"
211+
}
212+
},
213+
"required": [
214+
"x-correlator"
215+
]
192216
}
193217
}
194218
}
@@ -296,6 +320,18 @@
296320
]
297321
}
298322
}
323+
},
324+
"headers": {
325+
"type": "object",
326+
"properties": {
327+
"x-correlator": {
328+
"description": "Correlation id for the different services",
329+
"type": "string"
330+
}
331+
},
332+
"required": [
333+
"x-correlator"
334+
]
299335
}
300336
}
301337
}
@@ -407,6 +443,18 @@
407443
]
408444
}
409445
}
446+
},
447+
"headers": {
448+
"type": "object",
449+
"properties": {
450+
"x-correlator": {
451+
"description": "Correlation id for the different services",
452+
"type": "string"
453+
}
454+
},
455+
"required": [
456+
"x-correlator"
457+
]
410458
}
411459
}
412460
}
@@ -510,6 +558,18 @@
510558
]
511559
}
512560
}
561+
},
562+
"headers": {
563+
"type": "object",
564+
"properties": {
565+
"x-correlator": {
566+
"description": "Correlation id for the different services",
567+
"type": "string"
568+
}
569+
},
570+
"required": [
571+
"x-correlator"
572+
]
513573
}
514574
}
515575
}
@@ -618,6 +678,18 @@
618678
]
619679
}
620680
}
681+
},
682+
"headers": {
683+
"type": "object",
684+
"properties": {
685+
"x-correlator": {
686+
"description": "Correlation id for the different services",
687+
"type": "string"
688+
}
689+
},
690+
"required": [
691+
"x-correlator"
692+
]
621693
}
622694
}
623695
}
@@ -714,6 +786,18 @@
714786
}
715787
}
716788
}
789+
},
790+
"headers": {
791+
"type": "object",
792+
"properties": {
793+
"x-correlator": {
794+
"description": "Correlation id for the different services",
795+
"type": "string"
796+
}
797+
},
798+
"required": [
799+
"x-correlator"
800+
]
717801
}
718802
}
719803
}
@@ -825,6 +909,18 @@
825909
]
826910
}
827911
}
912+
},
913+
"headers": {
914+
"type": "object",
915+
"properties": {
916+
"x-correlator": {
917+
"description": "Correlation id for the different services",
918+
"type": "string"
919+
}
920+
},
921+
"required": [
922+
"x-correlator"
923+
]
828924
}
829925
}
830926
}
@@ -940,6 +1036,18 @@
9401036
]
9411037
}
9421038
}
1039+
},
1040+
"headers": {
1041+
"type": "object",
1042+
"properties": {
1043+
"x-correlator": {
1044+
"description": "Correlation id for the different services",
1045+
"type": "string"
1046+
}
1047+
},
1048+
"required": [
1049+
"x-correlator"
1050+
]
9431051
}
9441052
}
9451053
}

samples/headers.json

+15
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@
1616
"type": "string"
1717
}
1818
}
19+
},
20+
"headers": {
21+
"type": "object",
22+
"properties": {
23+
"X-Simple": {
24+
"type": "string"
25+
},
26+
"X-Ref": {
27+
"type": "string"
28+
}
29+
},
30+
"required": [
31+
"X-Ref",
32+
"X-Simple"
33+
]
1934
}
2035
}
2136
}

0 commit comments

Comments
 (0)