feat(validation-rules): add maxDigits and maxDecimals operators - #448
Merged
Conversation
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]>
…de/number-digits-decimals-rules-uatrmw
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Regenerates
@epilot/validation-rules-clientfrom 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 totalmaxDecimals— at most X digits after the decimal separatorBoth apply to
numberandtextinput types and take a non-negative integer comparison value.Changes
src/openapi.json/src/openapi-runtime.jsonregenerated vianpm run openapi:localagainst the API specsrc/openapi.d.tsregenerated vianpm run typegenpackage.jsonversion bumped 1.3.0 → 1.4.0No 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.jsoninstead, 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:
@epilot/[email protected]The two consumer MRs' CI stays red until 1.4.0 is published.
Test plan
pnpm run lint(biome) cleantsc --noEmitcleanOperatorunion includes both new valuesmain