Skip to content

Commit 10fd8e4

Browse files
authored
fix: Generate CloudQuery Go API Client from spec.json (#102)
This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
1 parent d005392 commit 10fd8e4

File tree

3 files changed

+52
-12
lines changed

3 files changed

+52
-12
lines changed

client.gen.go

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

models.gen.go

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

spec.json

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4562,16 +4562,19 @@
45624562
"description": "Response"
45634563
},
45644564
"400": {
4565-
"$ref": "#/components/responses/BadRequest"
4565+
"$ref": "#/components/responses/DockerError"
45664566
},
45674567
"401": {
4568-
"$ref": "#/components/responses/RequiresAuthentication"
4568+
"$ref": "#/components/responses/DockerError"
4569+
},
4570+
"404": {
4571+
"$ref": "#/components/responses/DockerError"
45694572
},
45704573
"422": {
4571-
"$ref": "#/components/responses/UnprocessableEntity"
4574+
"$ref": "#/components/responses/DockerError"
45724575
},
45734576
"500": {
4574-
"$ref": "#/components/responses/InternalError"
4577+
"$ref": "#/components/responses/DockerError"
45754578
}
45764579
},
45774580
"tags": [
@@ -7158,6 +7161,20 @@
71587161
"token"
71597162
]
71607163
},
7164+
"DockerError": {
7165+
"additionalProperties": false,
7166+
"description": "Error Returned from the Docker Authorization Handler to the Docker Registry",
7167+
"required": [
7168+
"details"
7169+
],
7170+
"properties": {
7171+
"details": {
7172+
"type": "string"
7173+
}
7174+
},
7175+
"title": "Docker Error",
7176+
"type": "object"
7177+
},
71617178
"Sync": {
71627179
"description": "Managed Sync definition",
71637180
"type": "object",
@@ -7377,6 +7394,16 @@
73777394
}
73787395
},
73797396
"description": "Method not allowed"
7397+
},
7398+
"DockerError": {
7399+
"content": {
7400+
"application/json": {
7401+
"schema": {
7402+
"$ref": "#/components/schemas/DockerError"
7403+
}
7404+
}
7405+
},
7406+
"description": "Error Returned from the Docker Authorization Handler to the Docker Registry"
73807407
}
73817408
},
73827409
"parameters": {

0 commit comments

Comments
 (0)