File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 20486
20486
"required": [
20487
20487
"request_body",
20488
20488
"destination_url",
20489
+ "headers",
20489
20490
"method",
20490
20491
"token",
20491
20492
"token_type"
20501
20502
},
20502
20503
"headers": {
20503
20504
"type": "object",
20504
- "description": "The headers that need to be forwarded",
20505
- "nullable": true
20505
+ "description": "The headers that need to be forwarded"
20506
20506
},
20507
20507
"method": {
20508
20508
"$ref": "#/components/schemas/Method"
20520
20520
"type": "object",
20521
20521
"required": [
20522
20522
"response",
20523
- "status_code"
20523
+ "status_code",
20524
+ "response_headers"
20524
20525
],
20525
20526
"properties": {
20526
20527
"response": {
20534
20535
},
20535
20536
"response_headers": {
20536
20537
"type": "object",
20537
- "description": "The headers of the response",
20538
- "nullable": true
20538
+ "description": "The headers of the response"
20539
20539
}
20540
20540
}
20541
20541
},
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub struct ProxyRequest {
22
22
#[ schema( value_type = String , example = "https://api.example.com/endpoint" ) ]
23
23
pub destination_url : url:: Url ,
24
24
/// The headers that need to be forwarded
25
- #[ schema( value_type = Option < Object > , example = r#"{ "key1": "value-1", "key2": "value-2" }"# ) ]
25
+ #[ schema( value_type = Object , example = r#"{ "key1": "value-1", "key2": "value-2" }"# ) ]
26
26
pub headers : Headers ,
27
27
/// The method that needs to be used for the request
28
28
#[ schema( value_type = Method , example = "Post" ) ]
@@ -48,7 +48,7 @@ pub struct ProxyResponse {
48
48
/// The status code of the response
49
49
pub status_code : u16 ,
50
50
/// The headers of the response
51
- #[ schema( value_type = Option < Object > , example = r#"{ "key1": "value-1", "key2": "value-2" }"# ) ]
51
+ #[ schema( value_type = Object , example = r#"{ "key1": "value-1", "key2": "value-2" }"# ) ]
52
52
pub response_headers : Headers ,
53
53
}
54
54
You can’t perform that action at this time.
0 commit comments