diff options
author | daubaris <paulius.daubaris@gmail.com> | 2019-11-22 18:28:29 +0200 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2019-11-22 10:28:29 -0600 |
commit | 60b874308e6792a73cc00517a60bbef60a12e3cc (patch) | |
tree | 3fac2b54902d2a40462ece80aff2bdefcfe05558 /test-suite/tests/valid/array-mixed-types-arrays-and-ints.json | |
parent | 75129040cd041b380f4f1d8f2685928392aa9f55 (diff) | |
download | milf-rs-60b874308e6792a73cc00517a60bbef60a12e3cc.tar.gz milf-rs-60b874308e6792a73cc00517a60bbef60a12e3cc.zip |
Mixed type arrays (#358)
* Added support of mixed-type arrays
* Add tests cases
* Replaced &'static str type for type_ and created a new enum instead
* Restored ArrayMixedType
Diffstat (limited to 'test-suite/tests/valid/array-mixed-types-arrays-and-ints.json')
-rw-r--r-- | test-suite/tests/valid/array-mixed-types-arrays-and-ints.json | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test-suite/tests/valid/array-mixed-types-arrays-and-ints.json b/test-suite/tests/valid/array-mixed-types-arrays-and-ints.json new file mode 100644 index 0000000..10074ec --- /dev/null +++ b/test-suite/tests/valid/array-mixed-types-arrays-and-ints.json @@ -0,0 +1,11 @@ +{ + "arrays-and-ints": { + "type": "array", + "value": [ + {"type": "integer", "value": "1"}, + {"type": "array", "value": [ + { "type": "string", "value":"Arrays are not integers."} + ]} + ] + } +} |