Skip to content

Commit 91746de

Browse files
Update api spec (#98)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 20f31c6 commit 91746de

File tree

2 files changed

+53
-22
lines changed

2 files changed

+53
-22
lines changed

spec.json

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5493,6 +5493,28 @@
54935493
],
54945494
"type": "object"
54955495
},
5496+
"EngineError": {
5497+
"description": "An error.",
5498+
"properties": {
5499+
"error_code": {
5500+
"allOf": [
5501+
{
5502+
"$ref": "#/components/schemas/ErrorCode"
5503+
}
5504+
],
5505+
"description": "The error code."
5506+
},
5507+
"message": {
5508+
"description": "The error message.",
5509+
"type": "string"
5510+
}
5511+
},
5512+
"required": [
5513+
"error_code",
5514+
"message"
5515+
],
5516+
"type": "object"
5517+
},
54965518
"EngineMetadata": {
54975519
"description": "Metadata about our currently running server.\n\nThis is mostly used for internal purposes and debugging.",
54985520
"properties": {
@@ -5588,24 +5610,21 @@
55885610
]
55895611
},
55905612
"Error": {
5591-
"description": "An error.",
5613+
"description": "Error information from a response.",
55925614
"properties": {
5593-
"code": {
5594-
"allOf": [
5595-
{
5596-
"$ref": "#/components/schemas/ErrorCode"
5597-
}
5598-
],
5599-
"description": "The error code."
5615+
"error_code": {
5616+
"type": "string"
56005617
},
56015618
"message": {
5602-
"description": "The error message.",
5619+
"type": "string"
5620+
},
5621+
"request_id": {
56035622
"type": "string"
56045623
}
56055624
},
56065625
"required": [
5607-
"code",
5608-
"message"
5626+
"message",
5627+
"request_id"
56095628
],
56105629
"type": "object"
56115630
},
@@ -5634,7 +5653,7 @@
56345653
"errors": {
56355654
"description": "A list of errors.",
56365655
"items": {
5637-
"$ref": "#/components/schemas/Error"
5656+
"$ref": "#/components/schemas/EngineError"
56385657
},
56395658
"type": "array"
56405659
}

types.go

Lines changed: 22 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)