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

Create Transaction custom validation with Validator to Send From and Distribute To fields #259

Open
qnen opened this issue Nov 14, 2024 · 0 comments · May be fixed by #260
Open

Create Transaction custom validation with Validator to Send From and Distribute To fields #259

qnen opened this issue Nov 14, 2024 · 0 comments · May be fixed by #260
Assignees
Labels
bug Something isn't working domain:transactions Responsible for transactions and operations

Comments

@qnen
Copy link
Member

qnen commented Nov 14, 2024

Context

POST Transaction from JSON is currently not validating the fields send.source.from and distribute.to. They should be validated to assure only one transaction type is being passed in the input. The fields to take in account:

  • amount
  • share
  • remaining

How to do it?

Create a custom Validator to validate when more than one of the fields listed above were informed, the API should return an error.

Changes

@qnen qnen self-assigned this Nov 14, 2024
@qnen qnen added bug Something isn't working domain:transactions Responsible for transactions and operations labels Nov 14, 2024
@qnen qnen linked a pull request Nov 14, 2024 that will close this issue
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working domain:transactions Responsible for transactions and operations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant