fix: reject scalar context foreach sources

This commit is contained in:
lda
2026-09-05 06:13:39 +07:00 Verified
parent 2a63c92c17
commit 043bda6a34
6 changed files with 150 additions and 65 deletions
+10
View File
@@ -0,0 +1,10 @@
from __future__ import annotations
from wf_core.schema_navigation import SchemaNavigator
def test_array_type_does_not_require_an_items_schema() -> None:
"""Unconstrained array elements do not make the collection non-array."""
view = SchemaNavigator({"type": "array"}).root
assert view.is_array()