Skip to content

Commit 1c65a7e

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

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

models.gen.go

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

spec.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7719,9 +7719,10 @@
77197719
},
77207720
"UserName" : {
77217721
"description" : "The unique name for the user.",
7722-
"example" : "user",
7722+
"example" : "Sarah O'Connor",
77237723
"maxLength" : 255,
7724-
"pattern" : "^[a-z](-?[a-z0-9]+)+$",
7724+
"minLength" : 1,
7725+
"pattern" : "^[a-zA-Z\\p{L}][a-zA-Z\\p{L} \\-']*$",
77257726
"type" : "string"
77267727
},
77277728
"User" : {
@@ -9869,7 +9870,7 @@
98699870
"created_at" : "2017-07-14T16:53:42Z",
98709871
"email" : "user@example.com",
98719872
"id" : "12345678-1234-1234-1234-1234567890ab",
9872-
"name" : "user",
9873+
"name" : "Sarah O'Connor",
98739874
"updated_at" : "2017-07-14T16:53:42Z"
98749875
}
98759876
} ],
@@ -9997,9 +9998,7 @@
99979998
"additionalProperties" : { },
99989999
"properties" : {
999910000
"name" : {
10000-
"description" : "The user's name",
10001-
"maxLength" : 255,
10002-
"minLength" : 1
10001+
"$ref" : "#/components/schemas/UserName"
1000310002
}
1000410003
}
1000510004
},
@@ -10236,6 +10235,11 @@
1023610235
"description" : "ARN of role created by the user",
1023710236
"type" : "string",
1023810237
"x-go-name" : "RoleARN"
10238+
},
10239+
"external_id" : {
10240+
"description" : "External ID used for the role",
10241+
"type" : "string",
10242+
"x-go-name" : "ExternalID"
1023910243
}
1024010244
}
1024110245
},

0 commit comments

Comments
 (0)