diff --git a/dkist/io/asdf/tests/test_dataset.py b/dkist/io/asdf/tests/test_dataset.py index f475e6b6..4d0d843e 100644 --- a/dkist/io/asdf/tests/test_dataset.py +++ b/dkist/io/asdf/tests/test_dataset.py @@ -103,6 +103,7 @@ def test_save_dataset_with_file_schema(tagobj, tmpdir): tree = {"dataset": tagobj} with importlib_resources.as_file(importlib_resources.files("dkist.io") / "level_1_dataset_schema.yaml") as schema_path: with asdf.AsdfFile(tree, custom_schema=schema_path.as_posix()) as afile: + afile.validate() # it seems that asdf 4.0 does not validate the custom schema on write? afile.write_to(Path(tmpdir / "test.asdf")) diff --git a/dkist/io/level_1_dataset_schema.yaml b/dkist/io/level_1_dataset_schema.yaml index bbcc67d6..63a0a584 100644 --- a/dkist/io/level_1_dataset_schema.yaml +++ b/dkist/io/level_1_dataset_schema.yaml @@ -19,6 +19,7 @@ properties: - $ref: "asdf://dkist.nso.edu/schemas/dataset-1.1.0" - $ref: "asdf://dkist.nso.edu/schemas/tiled_dataset-0.1.0" - $ref: "asdf://dkist.nso.edu/schemas/tiled_dataset-1.0.0" + - $ref: "asdf://dkist.nso.edu/schemas/tiled_dataset-1.1.0" required: [dataset] additionalProperties: true