Skip to content

Commit 164f267

Browse files
authored
fix: Generate CloudQuery Go API Client from spec.json (#33)
This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
1 parent 2b19e45 commit 164f267

File tree

3 files changed

+124
-15
lines changed

3 files changed

+124
-15
lines changed

client.gen.go

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

models.gen.go

Lines changed: 50 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: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"properties": {
121121
"items": {
122122
"items": {
123-
"$ref": "#/components/schemas/Plugin"
123+
"$ref": "#/components/schemas/ListPlugin"
124124
},
125125
"type": "array",
126126
"example": [
@@ -1854,6 +1854,12 @@
18541854
"parameters": [
18551855
{
18561856
"$ref": "#/components/parameters/team_name"
1857+
},
1858+
{
1859+
"$ref": "#/components/parameters/page"
1860+
},
1861+
{
1862+
"$ref": "#/components/parameters/per_page"
18571863
}
18581864
],
18591865
"responses": {
@@ -2791,6 +2797,26 @@
27912797
"title": "CloudQuery Plugin",
27922798
"type": "object"
27932799
},
2800+
"VersionName": {
2801+
"type": "string",
2802+
"description": "The version in semantic version format.",
2803+
"pattern": "^v[0-9]+\\.[0-9]+\\.[0-9]+(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
2804+
},
2805+
"ListPlugin": {
2806+
"allOf": [
2807+
{
2808+
"$ref": "#/components/schemas/Plugin"
2809+
},
2810+
{
2811+
"type": "object",
2812+
"properties": {
2813+
"latest_version": {
2814+
"$ref": "#/components/schemas/VersionName"
2815+
}
2816+
}
2817+
}
2818+
]
2819+
},
27942820
"ListMetadata": {
27952821
"properties": {
27962822
"total_count": {
@@ -2956,11 +2982,6 @@
29562982
}
29572983
}
29582984
},
2959-
"VersionName": {
2960-
"type": "string",
2961-
"description": "The version in semantic version format.",
2962-
"pattern": "^v[0-9]+\\.[0-9]+\\.[0-9]+(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
2963-
},
29642985
"PluginVersion": {
29652986
"additionalProperties": false,
29662987
"description": "CloudQuery Plugin Version",

0 commit comments

Comments
 (0)