Skip to content

Commit 8b11555

Browse files
committed
feat: making header optional
1 parent da1cd7b commit 8b11555

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

definitions/draco_rest/runtime_functions/rest_control_respond.proto.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,52 +19,52 @@
1919
"documentation": []
2020
},
2121
{
22-
"runtimeName": "headers",
22+
"runtimeName": "http_schema",
2323
"defaultValue": null,
2424
"name": [
2525
{
2626
"code": "en-US",
27-
"content": "HTTP response headers"
27+
"content": "Content Type"
2828
}
2929
],
3030
"description": [
3131
{
3232
"code": "en-US",
33-
"content": "A collection of key-value pairs containing additional response metadata."
33+
"content": "Specifies the MIME type of the response payload, such as application/json, application/xml, or text/plain. This determines the expected format of the payload parameter."
3434
}
3535
],
3636
"documentation": []
3737
},
3838
{
39-
"runtimeName": "http_schema",
39+
"runtimeName": "payload",
4040
"defaultValue": null,
4141
"name": [
4242
{
4343
"code": "en-US",
44-
"content": "Content Type"
44+
"content": "Response Payload"
4545
}
4646
],
4747
"description": [
4848
{
4949
"code": "en-US",
50-
"content": "Specifies the MIME type of the response payload, such as application/json, application/xml, or text/plain. This determines the expected format of the payload parameter."
50+
"content": "Contains the response payload. For application/json the value must be an OBJECT, for all other content types a plain string is expected."
5151
}
5252
],
5353
"documentation": []
5454
},
5555
{
56-
"runtimeName": "payload",
56+
"runtimeName": "headers",
5757
"defaultValue": null,
5858
"name": [
5959
{
6060
"code": "en-US",
61-
"content": "Response Payload"
61+
"content": "HTTP response headers"
6262
}
6363
],
6464
"description": [
6565
{
6666
"code": "en-US",
67-
"content": "Contains the response payload. For application/json the value must be an OBJECT, for all other content types a plain string is expected."
67+
"content": "A collection of key-value pairs containing additional response metadata."
6868
}
6969
],
7070
"documentation": []
@@ -98,7 +98,7 @@
9898
}
9999
],
100100
"displayIcon": "tabler:cube-send",
101-
"signature": "<S extends HTTP_SCHEMA>(http_status_code: HTTP_STATUS_CODE, headers: OBJECT<{}>, http_schema: S, payload: HTTP_PAYLOAD<S>): void",
101+
"signature": "<S extends HTTP_SCHEMA>(http_status_code: HTTP_STATUS_CODE, http_schema: S, payload: HTTP_PAYLOAD<S>, headers?: OBJECT<{}>): void",
102102
"linkedDataTypeIdentifiers": [
103103
"HTTP_STATUS_CODE",
104104
"OBJECT",

0 commit comments

Comments
 (0)