Change at:dejs-soft:format to reject too-long json arrays

`at` is for when you expect an array of a certain exact structure. If it
has extra elements, that indicates you were mistaken about the strucutre,
so it should fail to match.
This commit is contained in:
Aaron Sikes 2020-04-06 13:47:49 -04:00
parent ecc8d0ee29
commit eb0ce2daba
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fff4813d3c7fbc2275d31f4d2385e6b9c9a6e10352dee4542d48ce9374f73216
size 15793950
oid sha256:1bc81ced700ac9bbe3a6d231ccdec06956abe48a023e147e56a1c9e7a02523d8
size 12744827

View File

@ -5836,6 +5836,7 @@
|* wil/(pole fist)
|= jon/json
?. ?=({$a *} jon) ~
?. =((lent wil) (lent p.jon)) ~
=+ raw=((at-raw wil) p.jon)
?.((za raw) ~ (some (zp raw)))
::