Skip to content
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

Merged
merged 4 commits into from
Mar 11, 2024

Conversation

hectorgomezv
Copy link
Member

@hectorgomezv hectorgomezv commented Mar 6, 2024

Summary

This migrates the validation of DeleteDelegateDto to zod.

Changes

  • Remove DeleteDelegateDtoValidationPipe and associated schema.
  • Add DeleteDelegateDtoSchema.
  • Verifiy the associated endpoint data validation by ValidationPipe(DeleteDelegateDtoSchema).
  • Update associated tests.

@hectorgomezv hectorgomezv self-assigned this Mar 6, 2024
@hectorgomezv hectorgomezv requested a review from a team as a code owner March 6, 2024 15:57
@coveralls
Copy link

coveralls commented Mar 6, 2024

Pull Request Test Coverage Report for Build 8205614276

Details

  • 9 of 9 (100.0%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 93.418%

Totals Coverage Status
Change from base Build 8185873789: 0.01%
Covered Lines: 6417
Relevant Lines: 6633

💛 - Coveralls

@iamacook iamacook marked this pull request as draft March 7, 2024 12:30
@iamacook
Copy link
Member

iamacook commented Mar 7, 2024

I'm marking this as a draft as we need add tests for it.

@hectorgomezv hectorgomezv force-pushed the zod-delete-delegate-validation branch from c18ee92 to 5642ef2 Compare March 8, 2024 15:27
@hectorgomezv
Copy link
Member Author

I've added the validation schema unit tests in 98d6b26

@hectorgomezv hectorgomezv marked this pull request as ready for review March 8, 2024 15:42
@iamacook iamacook self-requested a review March 11, 2024 09:06
@hectorgomezv hectorgomezv merged commit 4562a43 into main Mar 11, 2024
16 checks passed
@hectorgomezv hectorgomezv deleted the zod-delete-delegate-validation branch March 11, 2024 09:28
Comment on lines +203 to +207
safeAddress: string | null;
delegate: string;
delegator: string;
signature: string;
label: string;
Copy link
Member

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?

Copy link
Member

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.

hectorgomezv added a commit that referenced this pull request Mar 11, 2024
- Remove `DeleteDelegateDtoValidationPipe` and associated schema.
- Add `DeleteDelegateDtoSchema`.
- Verifiy the associated endpoint data validation by `ValidationPipe(DeleteDelegateDtoSchema)`.
- Update associated tests.
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.

None yet

3 participants