• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

accordproject / concerto / 33740586685
98%

Build:
DEFAULT BRANCH: main
Ran 03 Sep 2026 09:47AM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
33740586685

push

github

web-flow
fix(concerto-core): stop mangling regex samples that already satisfy length (#1312)

* fix(concerto-core): stop mangling regex samples that already satisfy length

getRegexString always reshaped the RandExp output to a random length inside
the declared range, padding or truncating even when the generated value
already satisfied the length facet. A scalar such as

    scalar Code extends String regex=/^[a-z]{3}$/ length=[1,10]

produced sample instances that failed the model's own regex almost every
time, so factory.newConcept(..., { generate: 'sample' }) built instances
that could not survive their own toJSON validation.

The value is now only reshaped when it genuinely violates the length bounds,
preserving the previous best-effort behavior for facets that actually
conflict.

Tests added: a sampled fixed-length regex stays valid across four bound
combinations (sampled repeatedly to keep the check meaningful), plus an
end-to-end sample generation test through the factory.

Signed-off-by: rajanpanth <rajan.pantha@samriddhicollege.edu.np>

* fix(concerto-core): enforce a length bound of zero when reshaping regex samples

The reshaping gate kept the pre-existing truthiness check, so a legitimate
bound of 0 (length=[0,0]) read as absent and out-of-range values were never
reshaped. isLengthInRange already treats null and undefined as unenforced,
so the extra gate was both redundant and wrong. Test added for the zero
bound.

Signed-off-by: rajanpanth <rajan.pantha@samriddhicollege.edu.np>

---------

Signed-off-by: rajanpanth <rajan.pantha@samriddhicollege.edu.np>
Source Files on build 33740586685
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #33740586685
  • 03bbd4c8 on github
  • Prev Build on main (#33739799902)
  • Next Build on main (#33740930050)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc