Skip to content

Instantly share code, notes, and snippets.

@ashwanth1109
Created July 27, 2021 06:25
Show Gist options
  • Save ashwanth1109/5dd4e8856f21b84c4d8caca7cadbe1a1 to your computer and use it in GitHub Desktop.
Save ashwanth1109/5dd4e8856f21b84c4d8caca7cadbe1a1 to your computer and use it in GitHub Desktop.
[
{
"id": 3070,
"type": "NO_OP",
"reference_id": "No-Op",
"reference_version": "No-Op",
"reference_domain": "No-Op",
"input_schema": "{\n \"$schema\": \"http://json-schema.org/draft-07/schema\",\n \"$id\": \"http://example.com/root.json\",\n \"type\": \"object\",\n \"examples\": [\n {\n \"FlowID\": \"1440\",\n \"TraceId\": \"1-60d378ab-f58a4bc90ed41dfc5cf83fbf\",\n \"NodeName\": \"node-tokenize\",\n \"Time\": \"2021-06-23 18:08:51.157115\",\n \"Reason\": \"reason\",\n \"Details\": \"details\",\n \"StatusCode\": 500,\n \"NodeInput\": \"input\",\n \"NodeOutput\": \"output\"\n }\n ],\n \"properties\": {\n \"FlowID\": {\n \"$id\": \"#/properties/flowID\",\n \"type\": \"string\",\n \"title\": \"FlowID\",\n \"description\": \"Input is stored under event\",\n \"examples\": [\"1440\"]\n },\n \"TraceID\": {\n \"$id\": \"#/properties/traceID\",\n \"type\": \"string\",\n \"title\": \"TraceID\",\n \"description\": \"Xray trace id\",\n \"examples\": [\"1-60d378ab-f58a4bc90ed41dfc5cf83fbf\"]\n },\n \"NodeName\": {\n \"$id\": \"#/properties/nodeName\",\n \"type\": \"string\",\n \"title\": \"NodeName\",\n \"description\": \"Denotes the node that threw the error\",\n \"examples\": [\"node-tokenize\"]\n },\n \"Time\": {\n \"$id\": \"#/properties/time\",\n \"type\": \"string\",\n \"title\": \"Time\",\n \"description\": \"The UTC time the error was caught\",\n \"examples\": [\"2021-06-23 18:08:51.157115\"]\n },\n \"Reason\": {\n \"$id\": \"#/properties/reason\",\n \"type\": \"string\",\n \"title\": \"Reason\",\n \"description\": \"One line summary for the reason of the error\",\n \"examples\": [\"reason\"]\n },\n \"Details\": {\n \"$id\": \"#/properties/details\",\n \"type\": \"string\",\n \"title\": \"Details\",\n \"description\": \"Contains the full details of the error\",\n \"examples\": [\"details\"]\n },\n \"StatusCode\": {\n \"$id\": \"#/properties/statusCode\",\n \"type\": \"integer\",\n \"title\": \"StatusCode\",\n \"description\": \"HTTP status code for the error response\",\n \"examples\": [500]\n },\n \"NodeInput\": {\n \"$id\": \"#/properties/nodeInput\",\n \"type\": \"string\",\n \"title\": \"NodeInput\",\n \"description\": \"The input that the node received when it got the error\",\n \"examples\": [\"{\\\"event\\\":{}}\"]\n },\n \"NodeOutput\": {\n \"$id\": \"#/properties/nodeOutput\",\n \"type\": \"string\",\n \"title\": \"NodeOutput\",\n \"description\": \"The output that the node emitted\",\n \"examples\": [\"{\\\"errorMessage\\\":\\\"Exception in the input data\\\"}\"]\n }\n },\n \"required\": [\n \"FlowID\", \"TraceID\", \"NodeName\", \"Time\", \"Reason\", \"Details\", \"StatusCode\", \"NodeInput\"\n ]\n}",
"output_schema": "{\n \"$schema\": \"http://json-schema.org/draft-07/schema\",\n \"$id\": \"http://example.com/root.json\",\n \"type\": \"object\",\n \"examples\": [\n {\n \"FlowID\": \"1440\",\n \"TraceId\": \"1-60d378ab-f58a4bc90ed41dfc5cf83fbf\",\n \"NodeName\": \"node-tokenize\",\n \"Time\": \"2021-06-23 18:08:51.157115\",\n \"Reason\": \"reason\",\n \"Details\": \"details\",\n \"StatusCode\": 500,\n \"NodeInput\": \"input\",\n \"NodeOutput\": \"output\"\n }\n ],\n \"properties\": {\n \"FlowID\": {\n \"$id\": \"#/properties/flowID\",\n \"type\": \"string\",\n \"title\": \"FlowID\",\n \"description\": \"Input is stored under event\",\n \"examples\": [\"1440\"]\n },\n \"TraceID\": {\n \"$id\": \"#/properties/traceID\",\n \"type\": \"string\",\n \"title\": \"TraceID\",\n \"description\": \"Xray trace id\",\n \"examples\": [\"1-60d378ab-f58a4bc90ed41dfc5cf83fbf\"]\n },\n \"NodeName\": {\n \"$id\": \"#/properties/nodeName\",\n \"type\": \"string\",\n \"title\": \"NodeName\",\n \"description\": \"Denotes the node that threw the error\",\n \"examples\": [\"node-tokenize\"]\n },\n \"Time\": {\n \"$id\": \"#/properties/time\",\n \"type\": \"string\",\n \"title\": \"Time\",\n \"description\": \"The UTC time the error was caught\",\n \"examples\": [\"2021-06-23 18:08:51.157115\"]\n },\n \"Reason\": {\n \"$id\": \"#/properties/reason\",\n \"type\": \"string\",\n \"title\": \"Reason\",\n \"description\": \"One line summary for the reason of the error\",\n \"examples\": [\"reason\"]\n },\n \"Details\": {\n \"$id\": \"#/properties/details\",\n \"type\": \"string\",\n \"title\": \"Details\",\n \"description\": \"Contains the full details of the error\",\n \"examples\": [\"details\"]\n },\n \"StatusCode\": {\n \"$id\": \"#/properties/statusCode\",\n \"type\": \"integer\",\n \"title\": \"StatusCode\",\n \"description\": \"HTTP status code for the error response\",\n \"examples\": [500]\n },\n \"NodeInput\": {\n \"$id\": \"#/properties/nodeInput\",\n \"type\": \"string\",\n \"title\": \"NodeInput\",\n \"description\": \"The input that the node received when it got the error\",\n \"examples\": [\"{\\\"event\\\":{}}\"]\n },\n \"NodeOutput\": {\n \"$id\": \"#/properties/nodeOutput\",\n \"type\": \"string\",\n \"title\": \"NodeOutput\",\n \"description\": \"The output that the node emitted\",\n \"examples\": [\"{\\\"errorMessage\\\":\\\"Exception in the input data\\\"}\"]\n }\n },\n \"required\": [\n \"FlowID\", \"TraceID\", \"NodeName\", \"Time\", \"Reason\", \"Details\", \"StatusCode\", \"NodeInput\"\n ]\n}",
"endpoint_path": null,
"http_method": null,
"function_name": "catchError"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment