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
Currently, min/maxLength aren't included in sequence expressions. These tests should be added and pass without breaking existing tests by adding redundant descriptions like [number] == 1:
it("minLength expression",()=>{constT=type("number[] > 1");attest(T.expression).snap("number[] >= 2");});it("minLength description",()=>{constT=type("number[] > 1");attest(T.description).snap("number[] at least length 2");});it("maxLength expression",()=>{constT=type("number[] < 5");attest(T.expression).snap("number[] <= 4");});it("maxLength description",()=>{constT=type("number[] < 5");attest(T.description).snap("number[] at most length 4");});it("both bounds expression",()=>{constT=type("0 < number[] <= 5");attest(T.expression).snap("1 < number[] <= 5");});it("both bounds description",()=>{constT=type("0< number[] <= 5");attest(T.description).snap("number[] at most length 5 and non-empty");});
Activity
fix(schema): write length bounds and protos alongside a structure
docs: add CHANGELOG entries for #1577 and #1430
docs(repo): mark #1577 and #1430 fixed in issueAudit.md
docs(repo): add the #1023 option comparison to issueAudit.md
ssalbdivad commentedon Nov 18, 2026
Fixed in 3.0.0-beta.0 (#1728). Try it with
npm i arktype@next.