fix: reject scalar context foreach sources
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user