Skip to content

Commit 81b1483

Browse files
committed
fix: updated schema
1 parent e43e40f commit 81b1483

File tree

2 files changed

+29
-40
lines changed

2 files changed

+29
-40
lines changed

lib/index.d.ts

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -176,37 +176,8 @@ export interface Account {
176176
* Identity Provider details for federated users.
177177
*/
178178
identity_provider?: {
179-
/**
180-
* unique identifier of this identity provider
181-
*/
182-
id?: string
183-
organization?: {
184-
/**
185-
* unique name of organization
186-
*/
187-
name?: string
188-
[k: string]: any
189-
}
190-
/**
191-
* entity that owns this identity provider
192-
*/
193-
owner?: {
194-
/**
195-
* unique identifier of the owner
196-
*/
197-
id: string
198-
/**
199-
* name of the owner
200-
*/
201-
name?: string
202-
/**
203-
* type of the owner
204-
*/
205-
type: 'team' | 'enterprise-account'
206-
[k: string]: any
207-
}
208179
[k: string]: any
209-
}
180+
} | null
210181
/**
211182
* when account last authorized with Heroku
212183
*/
@@ -558,9 +529,12 @@ export interface AddOn {
558529
* unique identifier of the billing entity
559530
*/
560531
id?: string
532+
/**
533+
* name of the billing entity
534+
*/
561535
name?: string
562536
/**
563-
* type of Object of the billing entity, new types allowed at any time
537+
* type of Object of the billing entity; new types allowed at any time.
564538
*/
565539
type?: 'app' | 'team'
566540
[k: string]: any

schema.json

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,11 @@
532532
"object"
533533
]
534534
}
535-
}
535+
},
536+
"type": [
537+
"object",
538+
"null"
539+
]
536540
},
537541
"last_login": {
538542
"$ref": "#/definitions/account/definitions/last_login"
@@ -1790,8 +1794,10 @@
17901794
"example": {
17911795
"name": "DATABASE_FOLLOWER"
17921796
},
1793-
"name": {
1794-
"$ref": "#/definitions/add-on-attachment/definitions/name"
1797+
"properties": {
1798+
"name": {
1799+
"$ref": "#/definitions/add-on-attachment/definitions/name"
1800+
}
17951801
},
17961802
"type": [
17971803
"object"
@@ -1819,6 +1825,9 @@
18191825
},
18201826
"plan": {
18211827
"$ref": "#/definitions/plan/definitions/identity"
1828+
},
1829+
"name": {
1830+
"$ref": "#/definitions/add-on/definitions/name"
18221831
}
18231832
},
18241833
"required": [
@@ -1985,15 +1994,15 @@
19851994
]
19861995
},
19871996
"name": {
1988-
"desrciption": "name of the billing entity",
1997+
"description": "name of the billing entity",
19891998
"example": "acme_corp",
19901999
"readOnly": true,
19912000
"type": [
19922001
"string"
19932002
]
19942003
},
19952004
"type": {
1996-
"description": "type of Object of the billing entity, new types allowed at any time",
2005+
"description": "type of Object of the billing entity; new types allowed at any time.",
19972006
"enum": [
19982007
"app",
19992008
"team"
@@ -15232,7 +15241,10 @@
1523215241
"id": {
1523315242
"$ref": "#/definitions/pipeline/definitions/identity"
1523415243
}
15235-
}
15244+
},
15245+
"type": [
15246+
"object"
15247+
]
1523615248
},
1523715249
"setup_stream_url": {
1523815250
"$ref": "#/definitions/test-node/definitions/setup_stream_url"
@@ -15453,11 +15465,11 @@
1545315465
"title": "List"
1545415466
},
1545515467
{
15456-
"description": "Info for existing test-run.",
15468+
"description": "Info for existing test-run by Pipeline",
1545715469
"href": "/pipelines/{(%23%2Fdefinitions%2Fpipeline%2Fdefinitions%2Fid)}/test-runs/{(%23%2Fdefinitions%2Ftest-run%2Fdefinitions%2Fnumber)}",
1545815470
"method": "GET",
1545915471
"rel": "self",
15460-
"title": "Info"
15472+
"title": "Info By Pipeline"
1546115473
},
1546215474
{
1546315475
"description": "Update a test-run's status.",
@@ -15548,7 +15560,10 @@
1554815560
"id": {
1554915561
"$ref": "#/definitions/pipeline/definitions/identity"
1555015562
}
15551-
}
15563+
},
15564+
"type": [
15565+
"object"
15566+
]
1555215567
},
1555315568
"status": {
1555415569
"$ref": "#/definitions/test-run/definitions/status"

0 commit comments

Comments
 (0)