Skip to content

Commit f414691

Browse files
committed
fix: required buckets properties in LSG api
those are always provided, therefore should not be optional
1 parent 0191284 commit f414691

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)