Skip to content

Commit dc71a99

Browse files
committed
fix: chasing after schema validation error
1 parent fd4d6db commit dc71a99

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/schema/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ The namespaces are:
369369
| --------------------------- | ----------------------------------------------------------------------------------- | ---------------- |
370370
| `objects.common_principles` | Terms that are used throughout BIDS | General terms |
371371
| `objects.modalities` | Broad categories of data represented in BIDS, roughly matching recording instrument | General terms |
372+
| `objects.metaentities` | Placeholders and wildcards to reduce verbosity of some templates in BIDS | General terms |
372373
| `objects.entities` | Name-value pairs appearing in filenames | Name/value terms |
373374
| `objects.metadata` | Name-value pairs appearing in JSON files | Name/value terms |
374375
| `objects.columns` | Column headings and values appearing in TSV files | Name/value terms |
@@ -505,6 +506,12 @@ The convention can be summed up in the following rules:
505506
| `display_name` | Human-friendly name |
506507
| `description` | Term definition |
507508

509+
- `objects.metaentities`
510+
| Field | Description |
511+
| -------------- | ------------------- |
512+
| `display_name` | Human-friendly name |
513+
| `description` | Term definition |
514+
508515
- `objects.entities`
509516

510517
| Field | Description |

src/schema/objects/metaentities.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
# can be placed under any of the valid `data_type` directories.
2929

3030
matches:
31-
name: matches
3231
display_name: matches
3332
description: |
3433
`matches` is used as a placeholder in BIDS filenames templates to denote that several files
@@ -45,7 +44,6 @@ matches:
4544
`<matches>` could correspond to `sub-control01_task-nback_run-1`.
4645
4746
source_entities:
48-
name: source_entities
4947
display_name: source entities
5048
description: |
5149
`source_entities` is used as a placeholder in BIDS derivatives filenames templates.

tools/schemacode/src/bidsschematools/data/tests/test_rules.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def test_rule_objects(schema_obj):
9191
"files",
9292
"formats",
9393
"metadata",
94+
"metaentities",
9495
"modalities",
9596
]:
9697
# But other object types are referenced via their keys

0 commit comments

Comments
 (0)