Skip to content

Commit 510ebce

Browse files
tom-tanmr-c
authored andcommitted
Add a test for nested typeDSL
1 parent 5e9dde3 commit 510ebce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

schema_salad/tests/test_examples.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ def test_typedsl_ref() -> None:
355355
ra, _ = ldr.resolve_all(cmap({"type": "File[]?"}), "")
356356
assert {"type": ["null", {"items": "File", "type": "array"}]} == ra
357357

358+
ra, _ = ldr.resolve_all(cmap({"type": "File[][]"}), "")
359+
assert {"type": {"items": {"items": "File", "type": "array"}, "type": "array"}} == ra
360+
358361

359362
def test_secondaryFile_dsl_ref() -> None:
360363
ldr = Loader({})

0 commit comments

Comments
 (0)