-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate DeleteDelegateDto
validation to zod
#1265
Conversation
Pull Request Test Coverage Report for Build 8205614276Details
💛 - Coveralls |
e5f2fb3
to
c18ee92
Compare
I'm marking this as a draft as we need add tests for it. |
c18ee92
to
5642ef2
Compare
I've added the validation schema unit tests in 98d6b26 |
safeAddress: string | null; | ||
delegate: string; | ||
delegator: string; | ||
signature: string; | ||
label: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this branched off #1275?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only comments I have regarding this PR, I left there.
- Remove `DeleteDelegateDtoValidationPipe` and associated schema. - Add `DeleteDelegateDtoSchema`. - Verifiy the associated endpoint data validation by `ValidationPipe(DeleteDelegateDtoSchema)`. - Update associated tests.
Summary
This migrates the validation of
DeleteDelegateDto
tozod
.Changes
DeleteDelegateDtoValidationPipe
and associated schema.DeleteDelegateDtoSchema
.ValidationPipe(DeleteDelegateDtoSchema)
.