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

accordproject / concerto / 33739799902
98%

Build:
DEFAULT BRANCH: main
Ran 03 Sep 2026 09:44AM 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
33739799902

push

github

web-flow
fix(concerto-core): use the nested id field's regex when generating samples (#1311)

* fix(concerto-core): use the nested id field's regex when generating samples

InstanceGenerator.getFieldValue guarded on idField?.validator?.regex but then
read fieldOrScalarDeclaration.validator.regex, the validator of the outer
field being visited rather than the nested declaration's identifying field.
Generating a sample for a concept containing an identified type whose id
carries a regex threw

    TypeError: Cannot read properties of undefined (reading 'regex')

whenever the outer field had no validator of its own, and silently used the
wrong regex when it did.

Regression test added: generating a sample instance for a nested identified
type with a regex-constrained id now produces an id matching that regex.

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

* fix(concerto-core): pass the id field's length bounds through to getRegex

The nested id generation used only the regex facet, so an id field carrying
both regex and length constraints could generate ids outside the declared
length range. Mirror the primitive-string call site and forward
minLength/maxLength as well. Repeated-sampling regression test added
(bounds dropped makes it fail with values like length 20 against [2,4]).

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

---------

Signed-off-by: rajanpanth <rajan.pantha@samriddhicollege.edu.np>
Source Files on build 33739799902
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #33739799902
  • f4d86844 on github
  • Prev Build on main (#33168179029)
  • Next Build on main (#33740586685)
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