Skip to content

Commit

Permalink
Fix level_1_dataset_schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Feb 4, 2025
1 parent 44482fb commit c22a0ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dkist/io/asdf/tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))


Expand Down
1 change: 1 addition & 0 deletions dkist/io/level_1_dataset_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c22a0ae

Please sign in to comment.