From 6062344e359b5c4e9a852602abd2b8cf3586abb7 Mon Sep 17 00:00:00 2001 From: Marc White Date: Fri, 13 Sep 2024 15:49:52 +1000 Subject: [PATCH] Update experiment metadata schema to v1.0.3 --- .../data/metadata_schema_experiment.json | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/access_nri_intake/data/metadata_schema_experiment.json b/src/access_nri_intake/data/metadata_schema_experiment.json index 2d0d02b..dd12b67 100644 --- a/src/access_nri_intake/data/metadata_schema_experiment.json +++ b/src/access_nri_intake/data/metadata_schema_experiment.json @@ -1,12 +1,12 @@ { - "$id": "https://raw.githubusercontent.com/ACCESS-NRI/schema/main/au.org.access-nri/model/output/experiment-metadata/1-0-2.json", + "$id": "https://raw.githubusercontent.com/ACCESS-NRI/schema/main/au.org.access-nri/model/output/experiment-metadata/1-0-3.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Experiment metadata", "description": "The metadata associated with a model experiment", "type": "object", "properties": { "schema_version": { - "const": "1-0-2", + "const": "1-0-3", "description": "The version of the schema (string)" }, "name": { @@ -104,8 +104,13 @@ "description": "The variable(s) included in the experiment (string)" }, "nominal_resolution": { - "type": "array", - "items": {"type": ["string", "null"]}, + "oneOf": [ + {"type": ["string", "null"]}, + { + "type": "array", + "items": {"type": ["string", "null"]} + } + ], "description": "The nominal resolution(s) of model(s) used in the experiment (string)" }, "version": {