@nxgt/graphql-validation 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -145,6 +145,11 @@ for that.
|
|
|
145
145
|
`minItems` and `maxItems` apply to the list; every other rule applies to its
|
|
146
146
|
items. A nullable argument also accepts `null` and absence.
|
|
147
147
|
|
|
148
|
+
A list longer than `maxItems` is refused with its size alone from zod 4.6.6
|
|
149
|
+
on: Zod stops an oversized array before its items (its `capSize`), so the
|
|
150
|
+
error has one `too_big` issue at the list's path and none for its items.
|
|
151
|
+
With zod 4.6.5, the items' issues come first, then the `too_big`.
|
|
152
|
+
|
|
148
153
|
```graphql
|
|
149
154
|
type Query {
|
|
150
155
|
# at least one tag, at most 5; each tag 1 to 20 characters
|
package/package.json
CHANGED