Skip to content

feat(validation-rules): add maxDigits and maxDecimals operators - #448

Merged
durasj merged 4 commits into
mainfrom
claude/number-digits-decimals-rules-uatrmw
Aug 26, 2026
Merged

feat(validation-rules): add maxDigits and maxDecimals operators#448
durasj merged 4 commits into
mainfrom
claude/number-digits-decimals-rules-uatrmw

Conversation

@durasj

@durasj durasj commented Aug 25, 2026

Copy link
Copy Markdown
Member

Summary

Regenerates @epilot/validation-rules-client from the validation-rules API spec, picking up two new v2 comparison operators for limiting how many digits an input may contain:

  • maxDigits — at most X digits in total
  • maxDecimals — at most X digits after the decimal separator

Both apply to number and text input types and take a non-negative integer comparison value.

Changes

  • src/openapi.json / src/openapi-runtime.json regenerated via npm run openapi:local against the API spec
  • src/openapi.d.ts regenerated via npm run typegen
  • package.json version bumped 1.3.0 → 1.4.0

No hand-written changes to the generated files — the spec is the source of truth.

The changeset this PR originally carried was removed in 306836b; per CONTRIBUTING.md a client spec update carries its version bump in package.json instead, so that bump is now in 44816e6. Without it the PR had no release path at all, and the two consumer MRs below pin 1.4.0.

Rollout order

Each depends on the one above it:

  1. validation-rules-api!29 — API spec + write-time validation
  2. this PR — client regeneration, releases @epilot/[email protected]
  3. validation-rules-engine!10 — evaluation
  4. epilot360-validation-rules!48 — rule builder UI

The two consumer MRs' CI stays red until 1.4.0 is published.

Test plan

  • pnpm run lint (biome) clean
  • tsc --noEmit clean
  • Generated Operator union includes both new values
  • Operators verified present after the merge with main
  • CI green

Claude and others added 4 commits August 25, 2026 08:42
Regenerated from the validation-rules API spec: two count operators for
v2 comparison rules on number and text inputs. maxDigits limits the
total written digit count, maxDecimals the digits after the decimal
separator; both take a non-negative integer comparison value.

Co-Authored-By: Claude <[email protected]>
The regenerated spec adds the maxDigits and maxDecimals operators, so the
client needs a minor bump to be published. Per CONTRIBUTING.md, client
spec updates carry the version bump in package.json directly rather than
a changeset.

Co-Authored-By: Claude <[email protected]>
@durasj
durasj merged commit d2d5880 into main Aug 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants