From 1e2b8b386087ed7a56d169084210dbd4f16cb5dd Mon Sep 17 00:00:00 2001 From: Florian Reisinger Date: Tue, 20 Aug 2024 11:33:09 +1000 Subject: [PATCH] Add support for linked libraries to WRSC event schema --- .../WorkflowRunStateChange.schema.json | 21 +++++++++++++++++++ .../example/WRSC__example1.json | 10 +++++++++ .../WorkflowRunStateChange.schema.json | 21 +++++++++++++++++++ .../example/WRSC__example1.json | 10 +++++++++ 4 files changed, 62 insertions(+) diff --git a/docs/schemas/events/executionservice/WorkflowRunStateChange.schema.json b/docs/schemas/events/executionservice/WorkflowRunStateChange.schema.json index e2acd4fbf..f66be696e 100644 --- a/docs/schemas/events/executionservice/WorkflowRunStateChange.schema.json +++ b/docs/schemas/events/executionservice/WorkflowRunStateChange.schema.json @@ -77,11 +77,32 @@ "workflowRunName": { "type": "string" }, + "linkedLibraries": { + "type": "array", + "items": { + "$ref": "#/definitions/LibraryRecord" + } + }, "payload": { "$ref": "#/definitions/Payload" } } }, + "LibraryRecord": { + "type": "object", + "required": [ + "libraryId", + "orcabusId" + ], + "properties": { + "libraryId": { + "type": "string" + }, + "orcabusId": { + "type": "string" + } + } + }, "Payload": { "type": "object", "required": [ diff --git a/docs/schemas/events/executionservice/example/WRSC__example1.json b/docs/schemas/events/executionservice/example/WRSC__example1.json index 0ece6f388..faef6de5c 100644 --- a/docs/schemas/events/executionservice/example/WRSC__example1.json +++ b/docs/schemas/events/executionservice/example/WRSC__example1.json @@ -15,6 +15,16 @@ "workflowName": "BclConvert", "workflowVersion": "4.2.7", "workflowRunName": "540424_A01001_0193_BBBBMMDRX5", + "linkedLibraries": [ + { + "libraryId": "L000001", + "orcabusId": "lib.01J5M2J44HFJ9424G7074NKTGN" + }, + { + "libraryId": "L000002", + "orcabusId": "lib.01J5M2JFE1JPYV62RYQEG99CP5" + } + ], "payload": { "version": "0.1.0", "data": { diff --git a/docs/schemas/events/workflowmanager/WorkflowRunStateChange.schema.json b/docs/schemas/events/workflowmanager/WorkflowRunStateChange.schema.json index 6cfd60ff0..e30646448 100644 --- a/docs/schemas/events/workflowmanager/WorkflowRunStateChange.schema.json +++ b/docs/schemas/events/workflowmanager/WorkflowRunStateChange.schema.json @@ -73,11 +73,32 @@ "workflowRunName": { "type": "string" }, + "linkedLibraries": { + "type": "array", + "items": { + "$ref": "#/definitions/LibraryRecord" + } + }, "payload": { "$ref": "#/definitions/Payload" } } }, + "LibraryRecord": { + "type": "object", + "required": [ + "libraryId", + "orcabusId" + ], + "properties": { + "libraryId": { + "type": "string" + }, + "orcabusId": { + "type": "string" + } + } + }, "Payload": { "type": "object", "required": [ diff --git a/docs/schemas/events/workflowmanager/example/WRSC__example1.json b/docs/schemas/events/workflowmanager/example/WRSC__example1.json index c5b7e6976..ee13671dd 100644 --- a/docs/schemas/events/workflowmanager/example/WRSC__example1.json +++ b/docs/schemas/events/workflowmanager/example/WRSC__example1.json @@ -14,6 +14,16 @@ "workflowName": " e.g. bssh_icav2_fastq_copy", "workflowVersion": " e.g. 1.2.3", "workflowRunName": " e.g. 540424_A01001_0193_BBBBMMDRX5 FASTQ Copy", + "linkedLibraries": [ + { + "libraryId": "L000001", + "orcabusId": "lib.01J5M2J44HFJ9424G7074NKTGN" + }, + { + "libraryId": "L000002", + "orcabusId": "lib.01J5M2JFE1JPYV62RYQEG99CP5" + } + ], "payload": { "refId": " e.g. ", "version": "0.1.0",