You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think anything that can't be assigned to the internal Json type should be rejected by object.json. Never mind, that doesn't make sense for object.json since values like 1 are obviously valid JSON values.
Activity
[-]`json.object` allows unexpected values[/-][+]`object.json` allows unexpected values[/+][-]`object.json` allows unexpected values[/-][+]check prototype when checking object.json [/+]feat(type): accept only plain objects and arrays in object.json
ssalbdivad commentedon Nov 18, 2026
Fixed in 3.0.0-beta.0 (#1728). Try it with
npm i arktype@next.