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

feat(proofs): improve schema and add validation for create & update #349

Closed
wants to merge 3 commits into from

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented Jun 29, 2024

What

Following #343, and similar to #342 (for prices)

Add validations on proof create & update :

  • the recently added fields (location_osm_id, location_osm_type, date, currency) are now mandatory if the proof type is PRICE_TAG or RECEIPT
  • for both proof create & proof update endpoints
  • update tests

@raphodn raphodn marked this pull request as ready for review July 1, 2024 14:09
@raphodn raphodn changed the title refactor(proofs): improve schema and add validation for create & update feat(proofs): improve schema and add validation for create & update Jul 1, 2024
@raphael0202 raphael0202 self-requested a review July 10, 2024 11:41
Copy link
Contributor

@raphael0202 raphael0202 left a comment

Choose a reason for hiding this comment

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

Great! Looks good to me

@raphodn
Copy link
Member Author

raphodn commented Oct 6, 2024

Not needed anymore following #366

@raphodn raphodn closed this Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants