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

Type ITransactionApi responses at "raw" #2098

Merged
merged 1 commit into from
Nov 7, 2024
Merged

Conversation

iamacook
Copy link
Member

@iamacook iamacook commented Nov 6, 2024

Partial implementation of #1731

Summary

We validate API responses on the domain layer, but directly assign the type in the datasources. This means that the response types are not necessarily correct.

This types all the ITransactionApi responses as "raw". These responses can therefore not be used directly unless they are validated.

Changes

  • Add Raw utility type to ITransactionApi
  • Include validation where appropriate

@iamacook iamacook self-assigned this Nov 6, 2024
@iamacook iamacook requested a review from a team as a code owner November 6, 2024 16:45
Copy link
Member

@hectorgomezv hectorgomezv left a comment

Choose a reason for hiding this comment

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

👏🏻

@iamacook iamacook merged commit 96413f6 into main Nov 7, 2024
20 checks passed
@iamacook iamacook deleted the raw-transaction-api branch November 7, 2024 08:07
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