Skip to content

Commit b67368e

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

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

models.gen.go

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

spec.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3253,9 +3253,7 @@
32533253
],
32543254
"properties": {
32553255
"name": {
3256-
"type": "string",
3257-
"minLength": 1,
3258-
"maxLength": 255
3256+
"$ref": "#/components/schemas/APIKeyName"
32593257
},
32603258
"expires_at": {
32613259
"type": "string",
@@ -4771,7 +4769,7 @@
47714769
"example": "cli-api-key",
47724770
"maxLength": 255,
47734771
"minLength": 1,
4774-
"pattern": "^[a-zA-Z0-9-]+$"
4772+
"pattern": "^(?:[a-zA-Z0-9][a-zA-Z0-9- ]*)?[a-zA-Z0-9]$"
47754773
},
47764774
"APIKeyScope": {
47774775
"description": "Scope of permissions for the API key. API keys are used for creating new plugin versions and downloading existing plugins",
@@ -5061,11 +5059,7 @@
50615059
"in": "path",
50625060
"required": true,
50635061
"schema": {
5064-
"type": "string",
5065-
"example": "cli-api-key",
5066-
"maxLength": 255,
5067-
"minLength": 1,
5068-
"pattern": "^[a-zA-Z0-9-]+$"
5062+
"$ref": "#/components/schemas/APIKeyName"
50695063
},
50705064
"x-go-name": "APIKeyPathName"
50715065
}

0 commit comments

Comments
 (0)