Skip to content

Commit 753656a

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

File tree

3 files changed

+78
-34
lines changed

3 files changed

+78
-34
lines changed

client.gen.go

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

models.gen.go

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

spec.json

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@
782782
"content": {
783783
"application/json": {
784784
"schema": {
785-
"$ref": "#/components/schemas/PluginVersion"
785+
"$ref": "#/components/schemas/PluginVersionDetails"
786786
}
787787
}
788788
},
@@ -865,12 +865,7 @@
865865
}
866866
},
867867
"package_type": {
868-
"type": "string",
869-
"description": "The package type of the plugin assets",
870-
"enum": [
871-
"native",
872-
"docker"
873-
]
868+
"$ref": "#/components/schemas/PluginPackageType"
874869
}
875870
}
876871
}
@@ -5630,6 +5625,14 @@
56305625
]
56315626
}
56325627
},
5628+
"PluginPackageType": {
5629+
"description": "The package type of the plugin assets",
5630+
"type": "string",
5631+
"enum": [
5632+
"native",
5633+
"docker"
5634+
]
5635+
},
56335636
"PluginVersion": {
56345637
"additionalProperties": false,
56355638
"description": "CloudQuery Plugin Version",
@@ -5696,17 +5699,31 @@
56965699
"description": "The checksums of the plugin assets"
56975700
},
56985701
"package_type": {
5699-
"type": "string",
5700-
"description": "The package type of the plugin assets",
5701-
"enum": [
5702-
"native",
5703-
"docker"
5704-
]
5702+
"$ref": "#/components/schemas/PluginPackageType"
57055703
}
57065704
},
57075705
"title": "CloudQuery Plugin Version",
57085706
"type": "object"
57095707
},
5708+
"PluginVersionDetails": {
5709+
"allOf": [
5710+
{
5711+
"$ref": "#/components/schemas/PluginVersion"
5712+
},
5713+
{
5714+
"type": "object",
5715+
"required": [
5716+
"example_config"
5717+
],
5718+
"properties": {
5719+
"example_config": {
5720+
"type": "string",
5721+
"description": "Example configuration for the plugin. This can be used in generated quickstart guides, for example. Markdown format."
5722+
}
5723+
}
5724+
}
5725+
]
5726+
},
57105727
"PluginVersionUpdate": {
57115728
"type": "object",
57125729
"properties": {

0 commit comments

Comments
 (0)