From 509618bd9713d1f3bf1a0f5ff3324c413cd07fb8 Mon Sep 17 00:00:00 2001 From: Kostiantyn Dvornik Date: Mon, 10 Oct 2022 15:38:50 +0300 Subject: [PATCH] update: source schema --- schema/core/reference/exabyte.json | 19 +++++++++++++++++++ schema/properties/source.json | 20 +++++++------------- 2 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 schema/core/reference/exabyte.json diff --git a/schema/core/reference/exabyte.json b/schema/core/reference/exabyte.json new file mode 100644 index 000000000..90245894d --- /dev/null +++ b/schema/core/reference/exabyte.json @@ -0,0 +1,19 @@ +{ + "schemaId": "core/reference/exabyte", + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "materialId": { + "description": "Material's identity. Used for protoProperties.", + "type": "string" + }, + "jobId": { + "description": "Job's identity", + "type": "string" + }, + "unitId": { + "description": "Id of the unit that extracted the result", + "type": "string" + } + } +} diff --git a/schema/properties/source.json b/schema/properties/source.json index 2b80ca074..3ac4e5c42 100644 --- a/schema/properties/source.json +++ b/schema/properties/source.json @@ -13,21 +13,15 @@ "type": "string" }, "info": { - "type": "object", - "properties": { - "materialId": { - "description": "Material's identity. Used for protoProperties.", - "type": "string" + "oneOf": [ + { + "$ref": "../core/reference/exabyte.json" }, - "jobId": { - "description": "Job's identity", - "type": "string" - }, - "unitId": { - "description": "Id of the unit that extracted the result", - "type": "string" + { + "$ref": "../core/reference/experiment.json" } - } + ] + } } }