Skip to content

refactor: do validation in API side & add tests#93

Merged
ninoseki merged 1 commit intomainfrom
unify-validation
Sep 23, 2025
Merged

refactor: do validation in API side & add tests#93
ninoseki merged 1 commit intomainfrom
unify-validation

Conversation

@ninoseki
Copy link
Collaborator

@ninoseki ninoseki commented Sep 23, 2025

#92 introduces an inconsistency that doing struct validation in the api package vs. the cmd package.
This PR fixes the issue by unifying struct validation in the api package.

@ninoseki ninoseki requested review from cdnsyseng and fw42 September 23, 2025 03:33
Copy link
Contributor

@fw42 fw42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth pulling that test helper into its own file somehow instead of copy&pasting it. But LGTM for now.

@ninoseki ninoseki merged commit b777cdf into main Sep 23, 2025
5 checks passed
@ninoseki ninoseki deleted the unify-validation branch September 23, 2025 10:35
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.

3 participants