Skip to content

Commit b9be6c9

Browse files
authored
Merge pull request Sofie-Automation#1456 from tv2norge-collab/contribute/EAV-589
fix: make buckets properties required in LSG API
2 parents 0191284 + f414691 commit b9be6c9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/live-status-gateway-api/api/schemas/buckets.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ $defs:
3434
type: array
3535
items:
3636
$ref: '#/$defs/bucketAdlib'
37+
required: [id, name, adLibs]
38+
additionalProperties: false
3739
examples:
3840
- id: 'C6K_yIMuGFUk8X_L9A9_jRT6aq4_'
3941
name: My Bucket

packages/live-status-gateway-api/src/generated/schema.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -667,16 +667,15 @@ interface BucketStatus {
667667
/**
668668
* Unique id of the bucket
669669
*/
670-
id?: string
670+
id: string
671671
/**
672672
* The user defined bucket name
673673
*/
674-
name?: string
674+
name: string
675675
/**
676676
* The AdLibs in this bucket
677677
*/
678-
adLibs?: BucketAdLibStatus[]
679-
additionalProperties?: Record<string, any>
678+
adLibs: BucketAdLibStatus[]
680679
}
681680

682681
interface BucketAdLibStatus {

0 commit comments

Comments
 (0)