Skip to content

Commit 3892f8e

Browse files
authored
rf(schema): Drop context.dataset.files (#1883)
* fix(schema): Use exists() function instead of comparing to dataset.files * rf(schema): Drop context.dataset.files; exists() is cleaner * schema: Bump schema minor version
1 parent d2557e3 commit 3892f8e

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/schema/SCHEMA_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.10.1-dev
1+
0.11.0-dev

src/schema/meta/context.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ properties:
2929
dataset_description:
3030
description: 'Contents of /dataset_description.json'
3131
type: object
32-
files:
33-
description: 'List of all files in dataset'
34-
type: array
3532
tree:
3633
description: 'Tree view of all files in dataset'
3734
type: object

src/schema/rules/checks/dataset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ SamplesTSVMissing:
5151
- path == '/dataset_description.json'
5252
- '"micr" in dataset.modalities'
5353
checks:
54-
- "'samples.tsv' in dataset.files"
54+
- exists('samples.tsv', 'dataset')
5555

5656
UnknownVersion:
5757
issue:

src/schema/rules/dataset_metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ derivative_description:
3434
dataset_description_with_genetics:
3535
selectors:
3636
- path == "/dataset_description.json"
37-
- intersects(dataset.files, ["/genetic_info.json"])
37+
- exists('genetic_info.json', 'dataset')
3838
fields:
3939
Genetics: required
4040

0 commit comments

Comments
 (0)