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

kcl-lang / kcl-openapi / 33054296020
64%

Build:
DEFAULT BRANCH: main
Ran 27 Aug 2026 08:32AM UTC
Jobs 1
Files 14
Run time 1min
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

27 Aug 2026 08:29AM UTC coverage: 62.738% (-3.6%) from 66.386%
33054296020

push

github

web-flow
fix(generator): emit per-element regex check for array fields with pattern (#151) (#157)

Previously, when a CRD/OpenAPI schema had `pattern` on an array field (or
the pattern was on a list-typed value), the generator emitted a check like:

    _regex_match(str(values), r"...") if values

`str(values)` stringifies the whole collection (e.g. `"[a, b, c]"`),
so the regex could not match any individual element and the check
became a tautology that rejected almost any valid input.

Emit per-element validation for array fields:

    all i in values { _regex_match(str(i), r"...") if i } if values

Add testdata/array_pattern_regex covering three cases:
- pattern on the array itself (the originally broken case)
- pattern on the items (was already correct, locked in by fixture)
- a required array of strings with pattern

Signed-off-by: Claude <timi@noreply.anthropic.com>
Co-authored-by: Claude <timi@noreply.anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

2236 of 3564 relevant lines covered (62.74%)

0.71 hits per line

Coverage Regressions

Lines Coverage ∆ File
132
0.0
-75.0% pkg/utils/integrate_gen.go
Jobs
ID Job ID Ran Files Coverage
1 33054296020.1 27 Aug 2026 08:32AM UTC 14
62.74
GitHub Action Run
Source Files on build 33054296020
  • Tree
  • List 14
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 92274cb7 on github
  • Prev Build on main (#29793983595)
  • Next Build on main (#33054399940)
  • Delete
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