-
Notifications
You must be signed in to change notification settings - Fork 58
feat(LSG): new resolvedPlaylistTopic #1718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
justandras
wants to merge
11
commits into
Sofie-Automation:main
Choose a base branch
from
bbc:justandras/lsg-full-status
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,797
−86
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
438e15c
feat: resolvedPlaylistTopic schemas
justandras 5b9fa64
chore: fix generate-schema-types script
justandras 37b6d99
feat: resolvedPlaylistTopic
justandras 9908b5b
chore: comments
justandras 4c0693b
chore: tests
justandras 411ec12
chore: add invalid properties for parts
justandras 0679ec3
chore: add invalid properties for pieces
justandras bba34dc
chore: expose the floated property on parts
justandras 8253eeb
chore: expose untimed property for parts
justandras e8db066
chore: address PR comments
justandras 17be85e
chore: honor MongoQuery in segmentsFindOne
justandras File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/live-status-gateway-api/api/components/layers/outputLayer/outputLayer-example.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| id: 'ol_pgm' | ||
| name: 'PGM' | ||
| isFlattened: false | ||
| isPGM: true | ||
| sourceLayerIds: | ||
| - 'sl_camera' |
27 changes: 27 additions & 0 deletions
27
packages/live-status-gateway-api/api/components/layers/outputLayer/outputLayer.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| $defs: | ||
| outputLayer: | ||
| type: object | ||
| title: OutputLayer | ||
| description: Definition of an output layer used in a segment | ||
| properties: | ||
| id: | ||
| type: string | ||
| description: Unique id of the output layer | ||
| name: | ||
| type: string | ||
| description: User-presentable name of the output layer | ||
| isFlattened: | ||
| type: boolean | ||
| description: Whether the output layer is flattened | ||
| isPGM: | ||
| type: boolean | ||
| description: Whether PGM treatment should be in effect | ||
| sourceLayerIds: | ||
| description: The set of sourceLayer ids that feed this output layer | ||
| type: array | ||
| items: | ||
| type: string | ||
| required: [id, name, isFlattened, isPGM, sourceLayerIds] | ||
| additionalProperties: false | ||
| examples: | ||
| - $ref: './outputLayer-example.yaml' |
6 changes: 6 additions & 0 deletions
6
packages/live-status-gateway-api/api/components/layers/sourceLayer/sourceLayer-example.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| id: 'sl_camera' | ||
| name: 'Camera' | ||
| abbreviation: 'CAM' | ||
| isHidden: false | ||
| type: 1 | ||
| rank: 0 |
28 changes: 28 additions & 0 deletions
28
packages/live-status-gateway-api/api/components/layers/sourceLayer/sourceLayer.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| $defs: | ||
| sourceLayer: | ||
| type: object | ||
| title: SourceLayer | ||
| description: Definition of a source layer used in a segment | ||
| properties: | ||
| id: | ||
| type: string | ||
| description: Unique id of the source layer | ||
| name: | ||
| type: string | ||
| description: User-presentable name of the source layer | ||
| abbreviation: | ||
| type: string | ||
| description: Abbreviation for display | ||
| isHidden: | ||
| type: boolean | ||
| description: Whether the source layer is hidden in the UI | ||
| type: | ||
| type: number | ||
| description: Source layer content type (numeric enum) | ||
| rank: | ||
| type: number | ||
| description: Rank for ordering | ||
| required: [id, name, abbreviation, isHidden, type, rank] | ||
| additionalProperties: false | ||
| examples: | ||
| - $ref: './sourceLayer-example.yaml' |
3 changes: 3 additions & 0 deletions
3
...e-status-gateway-api/api/components/part/partInvalidReason/partInvalidReason-example.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| message: 'Invalid clip reference' | ||
| severity: warning | ||
| color: '#ff0000' |
19 changes: 19 additions & 0 deletions
19
...ages/live-status-gateway-api/api/components/part/partInvalidReason/partInvalidReason.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| $defs: | ||
| partInvalidReason: | ||
| title: PartInvalidReason | ||
| description: Explanation for why a part is invalid | ||
| type: object | ||
| properties: | ||
| message: | ||
| type: string | ||
| description: Human-readable message explaining why the part is invalid | ||
| severity: | ||
| description: Severity hint for displaying the invalid reason | ||
| $ref: '../../notifications/notificationSeverity.yaml#/$defs/severity' | ||
| color: | ||
| description: Optional UI color hint | ||
| type: string | ||
| required: [message] | ||
| additionalProperties: false | ||
| examples: | ||
| - $ref: './partInvalidReason-example.yaml' |
17 changes: 17 additions & 0 deletions
17
packages/live-status-gateway-api/api/components/part/resolvedPart/resolvedPart-example.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| $ref: '../partBase/partBase-example.yaml' | ||
| instanceId: 'partInstance_current_1' | ||
| externalId: 'ext_part_1' | ||
| rank: 10 | ||
| invalid: false | ||
| floated: false | ||
| untimed: false | ||
| invalidReason: | ||
| $ref: '../partInvalidReason/partInvalidReason-example.yaml' | ||
| state: current | ||
| createdByAdLib: false | ||
| publicData: | ||
| partType: 'intro' | ||
| timing: | ||
| $ref: '../../timing/resolvedPartTiming/resolvedPartTiming-example.yaml' | ||
| pieces: | ||
| - $ref: '../../piece/resolvedPiece/resolvedPiece-example.yaml' | ||
56 changes: 56 additions & 0 deletions
56
packages/live-status-gateway-api/api/components/part/resolvedPart/resolvedPart.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| $defs: | ||
| resolvedPartState: | ||
| title: ResolvedPartState | ||
| type: string | ||
| enum: | ||
| - current | ||
| - next | ||
|
|
||
| resolvedPart: | ||
| title: ResolvedPart | ||
| description: A part within a resolved segment | ||
| allOf: | ||
| - $ref: '../partBase/partBase.yaml#/$defs/partBase' | ||
| - type: object | ||
| title: ResolvedPart | ||
| description: A part within a resolved segment | ||
| properties: | ||
| instanceId: | ||
| type: string | ||
| description: Unique id of the part instance | ||
| externalId: | ||
| type: string | ||
| description: Id normally sourced from the ingest system | ||
| rank: | ||
| type: number | ||
| description: Rank for ordering | ||
| invalid: | ||
| type: boolean | ||
| description: Whether this part is invalid and should not be taken | ||
| floated: | ||
| type: boolean | ||
| description: Whether this part is floated and cannot be taken/nexted | ||
| untimed: | ||
| type: boolean | ||
| description: Whether this part is excluded from normal timing calculations | ||
| invalidReason: | ||
| description: Optional explanation for why the part is invalid | ||
| $ref: '../partInvalidReason/partInvalidReason.yaml#/$defs/partInvalidReason' | ||
| state: | ||
| description: Set only for the current or next part | ||
| $ref: '#/$defs/resolvedPartState' | ||
| createdByAdLib: | ||
| type: boolean | ||
| description: Whether this part was created by an adlib | ||
| publicData: | ||
| description: Optional arbitrary data | ||
| timing: | ||
| $ref: '../../timing/resolvedPartTiming/resolvedPartTiming.yaml#/$defs/resolvedPartTiming' | ||
| pieces: | ||
| description: Pieces in this part | ||
| type: array | ||
| items: | ||
| $ref: '../../piece/resolvedPiece/resolvedPiece.yaml#/$defs/resolvedPiece' | ||
| required: [instanceId, externalId, rank, createdByAdLib, timing, pieces, invalid, floated, untimed] | ||
| examples: | ||
| - $ref: './resolvedPart-example.yaml' |
17 changes: 17 additions & 0 deletions
17
...ges/live-status-gateway-api/api/components/piece/resolvedPiece/resolvedPiece-example.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| id: 'piece_1' | ||
| instanceId: 'pieceInstance_1' | ||
| externalId: 'ext_piece_1' | ||
| name: 'Camera 1' | ||
| priority: 0 | ||
| sourceLayerId: 'sl_camera' | ||
| outputLayerId: 'ol_pgm' | ||
| createdByAdLib: false | ||
| invalid: false | ||
| publicData: | ||
| switcherSource: 1 | ||
| timing: | ||
| $ref: '../../timing/resolvedPieceTiming/resolvedPieceTiming-example.yaml' | ||
| tags: | ||
| - 'camera' | ||
| abSessions: | ||
| - $ref: '../pieceStatus/abSessionAssignment-example.yaml' |
52 changes: 52 additions & 0 deletions
52
packages/live-status-gateway-api/api/components/piece/resolvedPiece/resolvedPiece.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| $defs: | ||
| resolvedPiece: | ||
| type: object | ||
| title: ResolvedPiece | ||
| description: A piece within a resolved part | ||
| properties: | ||
| id: | ||
| type: string | ||
| description: Unique id of the piece | ||
| instanceId: | ||
| type: string | ||
| description: Unique id of the piece instance | ||
| externalId: | ||
| type: string | ||
| description: Id normally sourced from the ingest system | ||
| name: | ||
| type: string | ||
| description: User-facing name of the piece | ||
| priority: | ||
| type: number | ||
| description: Priority of the piece | ||
| sourceLayerId: | ||
| type: string | ||
| description: Id of the source layer for this piece | ||
| outputLayerId: | ||
| type: string | ||
| description: Id of the output layer for this piece | ||
| createdByAdLib: | ||
| type: boolean | ||
| description: Whether this piece was created by an adlib | ||
| invalid: | ||
| type: boolean | ||
| description: Whether this piece is invalid and should be ignored | ||
| publicData: | ||
| description: Optional arbitrary data | ||
| timing: | ||
| $ref: '../../timing/resolvedPieceTiming/resolvedPieceTiming.yaml#/$defs/resolvedPieceTiming' | ||
| tags: | ||
| description: Optional tags attached to this piece | ||
| type: array | ||
| items: | ||
| type: string | ||
| abSessions: | ||
| description: Optional AB playback session assignments for this piece | ||
| type: array | ||
| items: | ||
| $ref: '../pieceStatus/abSessionAssignment.yaml' | ||
| required: | ||
| [id, instanceId, externalId, name, priority, sourceLayerId, outputLayerId, createdByAdLib, invalid, timing] | ||
| additionalProperties: false | ||
| examples: | ||
| - $ref: './resolvedPiece-example.yaml' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...-status-gateway-api/api/components/resolvedPlaylist/messages/resolvedPlaylistMessage.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| components: | ||
| messages: | ||
| resolvedPlaylistMessage: | ||
| name: resolvedPlaylist | ||
| messageId: resolvedPlaylistUpdate | ||
| description: Resolved Playlist status | ||
| payload: | ||
| $ref: '../resolvedPlaylistEvent/resolvedPlaylistEvent.yaml#/$defs/resolvedPlaylistEvent' | ||
| examples: | ||
| - payload: | ||
| $ref: '../resolvedPlaylistEvent/resolvedPlaylistEvent-example.yaml' |
18 changes: 18 additions & 0 deletions
18
.../api/components/resolvedPlaylist/resolvedPlaylistEvent/resolvedPlaylistEvent-example.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| $ref: '../../playlist/playlistStatus/playlistStatus-example.yaml' | ||
| event: resolvedPlaylist | ||
| currentPartInstanceId: 'partInstance_current_1' | ||
| nextPartInstanceId: 'partInstance_next_1' | ||
| playoutState: | ||
| mode: 'AUTO' | ||
| publicData: | ||
| category: 'Evening News' | ||
| timing: | ||
| $ref: '../../timing/resolvedPlaylistTiming/resolvedPlaylistTiming-example.yaml' | ||
| tTimers: | ||
| - $ref: '../../tTimers/tTimerStatus-countdownRunning-example.yaml' | ||
| - $ref: '../../tTimers/tTimerStatus-freeRunRunning-example.yaml' | ||
| - $ref: '../../tTimers/tTimerStatus-unconfigured-example.yaml' | ||
| quickLoop: | ||
| $ref: '../../quickLoop/activePlaylistQuickLoop/activePlaylistQuickLoop-example.yaml' | ||
| rundowns: | ||
| - $ref: '../../rundown/resolvedRundown/resolvedRundown-example.yaml' |
51 changes: 51 additions & 0 deletions
51
...eway-api/api/components/resolvedPlaylist/resolvedPlaylistEvent/resolvedPlaylistEvent.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| title: Resolved Playlist | ||
| description: Resolved Playlist schema for websocket subscriptions | ||
| $defs: | ||
| resolvedPlaylistEvent: | ||
| title: ResolvedPlaylistEvent | ||
| description: Resolved playlist details, including the base playlist status. | ||
| allOf: | ||
| - $ref: '../../playlist/playlistStatus/playlistStatus.yaml#/$defs/playlistStatus' | ||
| - type: object | ||
| title: ResolvedPlaylistEvent | ||
| description: Resolved playlist details, including rundown/segment/part/piece structure. | ||
| properties: | ||
| event: | ||
| type: string | ||
| const: resolvedPlaylist | ||
| currentPartInstanceId: | ||
| description: Instance id of the current part, if any | ||
| oneOf: | ||
| - type: string | ||
| - type: 'null' | ||
| nextPartInstanceId: | ||
| description: Instance id of the next part, if any | ||
| oneOf: | ||
| - type: string | ||
| - type: 'null' | ||
| playoutState: | ||
| description: Blueprint-defined playout state, used to expose arbitrary information about playout | ||
| publicData: | ||
| description: Optional arbitrary data | ||
| timing: | ||
| $ref: '../../timing/resolvedPlaylistTiming/resolvedPlaylistTiming.yaml#/$defs/resolvedPlaylistTiming' | ||
| tTimers: | ||
| description: Status of the 3 T-timers in the playlist | ||
| type: array | ||
| items: | ||
| $ref: '../../tTimers/tTimerStatus.yaml#/$defs/tTimerStatus' | ||
| minItems: 3 | ||
| maxItems: 3 | ||
| quickLoop: | ||
| description: Information about the current quickLoop, if any | ||
| oneOf: | ||
| - type: 'null' | ||
| - $ref: '../../quickLoop/activePlaylistQuickLoop/activePlaylistQuickLoop.yaml#/$defs/activePlaylistQuickLoop' | ||
| rundowns: | ||
| description: The rundowns in the playlist, in rank order | ||
| type: array | ||
| items: | ||
| $ref: '../../rundown/resolvedRundown/resolvedRundown.yaml#/$defs/resolvedRundown' | ||
| required: [event, currentPartInstanceId, nextPartInstanceId, timing, tTimers, rundowns] | ||
| examples: | ||
| - $ref: './resolvedPlaylistEvent-example.yaml' |
9 changes: 9 additions & 0 deletions
9
...ve-status-gateway-api/api/components/rundown/resolvedRundown/resolvedRundown-example.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| id: 'rd_1' | ||
| externalId: 'ext_rd_1' | ||
| name: 'Rundown 1' | ||
| rank: 10 | ||
| description: '' | ||
| publicData: | ||
| ingestSource: 'NRK' | ||
| segments: | ||
| - $ref: '../../segment/resolvedSegment/resolvedSegment-example.yaml' |
32 changes: 32 additions & 0 deletions
32
packages/live-status-gateway-api/api/components/rundown/resolvedRundown/resolvedRundown.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| $defs: | ||
| resolvedRundown: | ||
| type: object | ||
| title: ResolvedRundown | ||
| description: A rundown within a resolved playlist | ||
| properties: | ||
| id: | ||
| type: string | ||
| description: Unique id of the rundown | ||
| externalId: | ||
| type: string | ||
| description: Id normally sourced from the ingest system | ||
| name: | ||
| type: string | ||
| description: User-presentable name of the rundown | ||
| rank: | ||
| type: number | ||
| description: Rank for ordering | ||
| description: | ||
| type: string | ||
| description: Optional description | ||
| publicData: | ||
| description: Optional arbitrary data | ||
| segments: | ||
| description: Segments in this rundown | ||
| type: array | ||
| items: | ||
| $ref: '../../segment/resolvedSegment/resolvedSegment.yaml#/$defs/resolvedSegment' | ||
| required: [id, externalId, name, rank, segments] | ||
| additionalProperties: false | ||
| examples: | ||
| - $ref: './resolvedRundown-example.yaml' |
16 changes: 16 additions & 0 deletions
16
...ve-status-gateway-api/api/components/segment/resolvedSegment/resolvedSegment-example.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| $ref: '../segmentBase/segmentBase-example.yaml' | ||
| externalId: 'ext_seg_1' | ||
| identifier: 'A' | ||
| name: 'Headlines' | ||
| rank: 1 | ||
| isHidden: false | ||
| sourceLayers: | ||
| - $ref: '../../layers/sourceLayer/sourceLayer-example.yaml' | ||
| outputLayers: | ||
| - $ref: '../../layers/outputLayer/outputLayer-example.yaml' | ||
| publicData: | ||
| slug: 'HEAD' | ||
| timing: | ||
| $ref: '../../timing/resolvedSegmentTiming/resolvedSegmentTiming-example.yaml' | ||
| parts: | ||
| - $ref: '../../part/resolvedPart/resolvedPart-example.yaml' |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 2243
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 4474
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 1156
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 242
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 53
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 1668
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 2133
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 529
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 53
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 286
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 771
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 4977
🏁 Script executed:
Repository: Sofie-Automation/sofie-core
Length of output: 445
🏁 Script executed:
rg -t yaml 'allOf' packages/live-status-gateway-api/api/components/part/resolvedPart/ -B 5 -A 10Repository: Sofie-Automation/sofie-core
Length of output: 1860
Fix the example file to match the schema's composition pattern.
The schema definition in
resolvedPart.yamlcorrectly usesallOfto composepartBasewith sibling properties. However, the example fileresolvedPart-example.yamluses a$refat the root with sibling keys, which violates strict JSON Schema semantics—though your current tooling (@apidevtools/json-schema-ref-parser) happens to merge them.For portability and spec compliance, align the example with the schema's
allOfpattern by either inlining the base example fields or usingallOfsyntax in the example as well.🤖 Prompt for AI Agents