Skip to content

Commit 9323072

Browse files
committed
last round of suggestions?
1 parent 61c8ec6 commit 9323072

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

python/tests/test_metadata.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -657,17 +657,15 @@ def test_round_trip_with_struct_and_json(self):
657657
"properties": {
658658
"label": {"type": "string"},
659659
"count": {"type": "number"},
660-
"stuff": {
661-
"type": "array",
662-
"arrayLengthFormat": "h",
663-
"items": {"type": "number"},
664-
},
660+
"stuff": {"type": "array"},
665661
},
666662
"required": ["label"],
667663
},
668664
"struct": {
669665
"type": "object",
670666
"properties": {
667+
"b0": {"type": "number", "binaryFormat": "i"},
668+
"b1": {"type": "number", "binaryFormat": "i"},
671669
"xyz": {
672670
"type": "array",
673671
"arrayLengthFormat": "H",
@@ -683,8 +681,9 @@ def test_round_trip_with_struct_and_json(self):
683681
"count": 7,
684682
"b0": 123,
685683
"b1": 0,
686-
"stuff": [1, 3, 2, -1.5],
684+
"stuff": [1, 3, 2, -1.5, "abc", None],
687685
"xyz": v,
686+
"another_thing": "since JSON is permissive this is allowed",
688687
}
689688
encoded = ms.validate_and_encode_row(row)
690689
out = ms.decode_row(encoded)

0 commit comments

Comments
 (0)