Skip to content

Replace #[validate(range)] with stronger types#1107

Merged
svix-jplatte merged 3 commits into
mainfrom
jplatte/validate-range
Apr 21, 2026
Merged

Replace #[validate(range)] with stronger types#1107
svix-jplatte merged 3 commits into
mainfrom
jplatte/validate-range

Conversation

@svix-jplatte

Copy link
Copy Markdown
Member

… in the API. #[validate(range) continues to be used for the config, at least for now.

After this, only one custom validation function for AccessRule lists remains, after that we'll be able to remove ValidationErrorBody, which I want to do for #302.

@github-actions

Copy link
Copy Markdown
TestsPassed ✅SkippedFailedTime ⏱
Diom CI JUnit310 ran310 passed0 skipped0 failed6m 53s 970ms
TestResultTime ⏱
No test annotations available

@github-actions

Copy link
Copy Markdown

Test Coverage: 80.05%

Artifact download

@svix-jplatte svix-jplatte marked this pull request as ready for review April 21, 2026 11:04
@svix-jplatte svix-jplatte requested a review from a team April 21, 2026 11:04
@svix-jplatte svix-jplatte requested a review from a team as a code owner April 21, 2026 11:04
@svix-jplatte svix-jplatte merged commit 8e59af8 into main Apr 21, 2026
40 checks passed
@svix-jplatte svix-jplatte deleted the jplatte/validate-range branch April 21, 2026 14:07
svix-jbrown added a commit that referenced this pull request Apr 21, 2026
I saw #1107 and got excited about type-level validation.
svix-jplatte added a commit that referenced this pull request Apr 21, 2026
This gets rid of `ValidationErrorBody` for
#302 by completely removing
`validator` stuff from the request body processing path (most of the
`#[validate]` attributes were already removed in #1107).

Best reviewed commit by commit.
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