Skip to content

Commit 71eb1d8

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

File tree

2 files changed

+23
-29
lines changed

2 files changed

+23
-29
lines changed

models.gen.go

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

spec.json

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -499,11 +499,7 @@
499499
"description": "A message describing what's new or changed in this version.\nThis message will be displayed to users in the plugin's changelog.\nSupports limited markdown syntax.\n"
500500
},
501501
"protocols": {
502-
"type": "array",
503-
"description": "List of protocols supported by this plugin version",
504-
"items": {
505-
"type": "integer"
506-
}
502+
"$ref": "#/components/schemas/PluginProtocols"
507503
},
508504
"supported_targets": {
509505
"type": "array",
@@ -3685,6 +3681,16 @@
36853681
}
36863682
}
36873683
},
3684+
"PluginProtocols": {
3685+
"description": "The CloudQuery protocols supported by this plugin version (only protocol 3 is supported by new plugins).",
3686+
"type": "array",
3687+
"items": {
3688+
"type": "integer",
3689+
"enum": [
3690+
3
3691+
]
3692+
}
3693+
},
36883694
"PluginVersion": {
36893695
"additionalProperties": false,
36903696
"description": "CloudQuery Plugin Version",
@@ -3729,15 +3735,7 @@
37293735
"description": "If a plugin version is retracted, assets will still be available for download, but the version will be marked as retracted to discourage use."
37303736
},
37313737
"protocols": {
3732-
"type": "array",
3733-
"items": {
3734-
"type": "integer"
3735-
},
3736-
"description": "The CloudQuery protocols supported by this plugin version",
3737-
"example": [
3738-
1,
3739-
2
3740-
]
3738+
"$ref": "#/components/schemas/PluginProtocols"
37413739
},
37423740
"supported_targets": {
37433741
"type": "array",
@@ -3787,15 +3785,7 @@
37873785
"description": "If a plugin version is retracted, assets will still be available for download, but the version will be marked as retracted to discourage use."
37883786
},
37893787
"protocols": {
3790-
"type": "array",
3791-
"items": {
3792-
"type": "integer"
3793-
},
3794-
"description": "The supported CloudQuery protocols by this plugin version",
3795-
"example": [
3796-
1,
3797-
2
3798-
]
3788+
"$ref": "#/components/schemas/PluginProtocols"
37993789
},
38003790
"supported_targets": {
38013791
"type": "array",
@@ -3856,6 +3846,7 @@
38563846
},
38573847
"content": {
38583848
"type": "string",
3849+
"minLength": 1,
38593850
"description": "The content of the documentation page. Supports markdown.",
38603851
"example": "# Getting Started\n\nThis is the getting started page."
38613852
}

0 commit comments

Comments
 (0)