From 6777140a49110db038dbb21ec6fb5021f2826ae4 Mon Sep 17 00:00:00 2001 From: Kimberly Meechan <24316371+K-Meech@users.noreply.github.com> Date: Sun, 28 Apr 2024 10:53:08 +0100 Subject: [PATCH] Add absolute path for local files --- schema/source.schema.json | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/schema/source.schema.json b/schema/source.schema.json index 15b1991..20b2f01 100644 --- a/schema/source.schema.json +++ b/schema/source.schema.json @@ -18,12 +18,19 @@ "type": "string", "description": "The file path to the xml storing the bdv metadata, relative to the dataset root location." }, + "absolutePath": { + "type": "string", + "description": "The absolute file path to the xml storing the bdv metadata." + }, "channel": { "type": "integer", "description": "Optional setup to display from the bdv.xml, in case it contains multiple setups." } }, - "required": ["relativePath"], + "oneOf": [ + {"required": ["relativePath"]}, + {"required": ["absolutePath"]} + ], "additionalProperties": false }, "bdv.n5": { @@ -34,12 +41,19 @@ "type": "string", "description": "The file path to the xml storing the bdv metadata, relative to the dataset root location." }, + "absolutePath": { + "type": "string", + "description": "The absolute file path to the xml storing the bdv metadata." + }, "channel": { "type": "integer", "description": "Optional setup to display from the bdv.xml, in case it contains multiple setups." } }, - "required": ["relativePath"], + "oneOf": [ + {"required": ["relativePath"]}, + {"required": ["absolutePath"]} + ], "additionalProperties": false }, "bdv.n5.s3": { @@ -66,12 +80,19 @@ "type": "string", "description": "The file path to the xml storing the bdv metadata, relative to the dataset root location." }, + "absolutePath": { + "type": "string", + "description": "The absolute file path to the xml storing the bdv metadata." + }, "channel": { "type": "integer", "description": "Optional setup to display from the bdv.xml, in case it contains multiple setups." } }, - "required": ["relativePath"], + "oneOf": [ + {"required": ["relativePath"]}, + {"required": ["absolutePath"]} + ], "additionalProperties": false }, "bdv.ome.zarr.s3": { @@ -98,12 +119,19 @@ "type": "string", "description": "The file path to the ome.zarr file, relative to the dataset root location." }, + "absolutePath": { + "type": "string", + "description": "The absolute file path to the ome.zarr file." + }, "channel": { "type": "integer", "description": "Optional channel to display from the ome.zarr file, in case it contains multiple channels." } }, - "required": ["relativePath"], + "oneOf": [ + {"required": ["relativePath"]}, + {"required": ["absolutePath"]} + ], "additionalProperties": false }, "ome.zarr.s3": {