Skip to content

Commit 5d828d4

Browse files
committed
Relax JSON schema
1 parent 58e5969 commit 5d828d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

share/openPMD/json_schema/record_component.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ title = "Either array or constant"
4444

4545
[allOf.if]
4646
required = ["attributes"]
47-
properties.attributes.required = ["shape", "value"]
47+
# shape optional as of https://github.com/openPMD/openPMD-api/pull/1661
48+
# JSON schema not powerful enough to check that the shape must be defined
49+
# at least once (just like we do not check that the shape is consistent).
50+
properties.attributes.required = ["value"]
4851

4952
[allOf.then]
5053
title = "Constant dataset"

0 commit comments

Comments
 (0)