Skip to content

Commit 5ddde5c

Browse files
committed
Rest Response Function Definition should have the same signature
1 parent cff9363 commit 5ddde5c

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

definitions/draco_rest/functions/rest_control_respond.proto.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,52 +20,52 @@
2020
"documentation": []
2121
},
2222
{
23-
"runtimeName": "headers",
23+
"runtimeName": "http_schema",
2424
"defaultValue": null,
2525
"name": [
2626
{
2727
"code": "en-US",
28-
"content": "HTTP response headers"
28+
"content": "Content Type"
2929
}
3030
],
3131
"description": [
3232
{
3333
"code": "en-US",
34-
"content": "A collection of key-value pairs containing additional response metadata."
34+
"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."
3535
}
3636
],
3737
"documentation": []
3838
},
3939
{
40-
"runtimeName": "http_schema",
40+
"runtimeName": "payload",
4141
"defaultValue": null,
4242
"name": [
4343
{
4444
"code": "en-US",
45-
"content": "Content Type"
45+
"content": "Response Payload"
4646
}
4747
],
4848
"description": [
4949
{
5050
"code": "en-US",
51-
"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."
51+
"content": "Contains the response payload. For application/json the value must be an OBJECT, for all other content types a plain string is expected."
5252
}
5353
],
5454
"documentation": []
5555
},
5656
{
57-
"runtimeName": "payload",
57+
"runtimeName": "headers",
5858
"defaultValue": null,
5959
"name": [
6060
{
6161
"code": "en-US",
62-
"content": "Response Payload"
62+
"content": "HTTP response headers"
6363
}
6464
],
6565
"description": [
6666
{
6767
"code": "en-US",
68-
"content": "Contains the response payload. For application/json the value must be an OBJECT, for all other content types a plain string is expected."
68+
"content": "A collection of key-value pairs containing additional response metadata."
6969
}
7070
],
7171
"documentation": []
@@ -99,11 +99,12 @@
9999
}
100100
],
101101
"displayIcon": "tabler:cube-send",
102-
"signature": "<S extends HTTP_SCHEMA>(http_status_code: HTTP_STATUS_CODE, headers: OBJECT<{}>, http_schema: S, payload: HTTP_PAYLOAD<S>): void",
102+
"signature": "<S extends HTTP_SCHEMA>(http_status_code: HTTP_STATUS_CODE, http_schema: S, payload: HTTP_PAYLOAD<S>, headers?: OBJECT<{}>): void",
103103
"linkedDataTypeIdentifiers": [
104104
"HTTP_STATUS_CODE",
105105
"OBJECT",
106106
"HTTP_SCHEMA",
107107
"HTTP_PAYLOAD"
108108
]
109109
}
110+

0 commit comments

Comments
 (0)