Skip to content

Commit 93f7242

Browse files
committed
fix open api spec
1 parent eef8450 commit 93f7242

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

api-reference-v2/openapi_spec.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20486,6 +20486,7 @@
2048620486
"required": [
2048720487
"request_body",
2048820488
"destination_url",
20489+
"headers",
2048920490
"method",
2049020491
"token",
2049120492
"token_type"
@@ -20501,8 +20502,7 @@
2050120502
},
2050220503
"headers": {
2050320504
"type": "object",
20504-
"description": "The headers that need to be forwarded",
20505-
"nullable": true
20505+
"description": "The headers that need to be forwarded"
2050620506
},
2050720507
"method": {
2050820508
"$ref": "#/components/schemas/Method"
@@ -20520,7 +20520,8 @@
2052020520
"type": "object",
2052120521
"required": [
2052220522
"response",
20523-
"status_code"
20523+
"status_code",
20524+
"response_headers"
2052420525
],
2052520526
"properties": {
2052620527
"response": {
@@ -20534,8 +20535,7 @@
2053420535
},
2053520536
"response_headers": {
2053620537
"type": "object",
20537-
"description": "The headers of the response",
20538-
"nullable": true
20538+
"description": "The headers of the response"
2053920539
}
2054020540
}
2054120541
},

crates/api_models/src/proxy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct ProxyRequest {
2222
#[schema(value_type = String, example = "https://api.example.com/endpoint")]
2323
pub destination_url: url::Url,
2424
/// 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" }"#)]
2626
pub headers: Headers,
2727
/// The method that needs to be used for the request
2828
#[schema(value_type = Method, example = "Post")]
@@ -48,7 +48,7 @@ pub struct ProxyResponse {
4848
/// The status code of the response
4949
pub status_code: u16,
5050
/// 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" }"#)]
5252
pub response_headers: Headers,
5353
}
5454

0 commit comments

Comments
 (0)