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

Add quality checks in the NodeJS package #529

Open
teolemon opened this issue Oct 6, 2024 · 0 comments
Open

Add quality checks in the NodeJS package #529

teolemon opened this issue Oct 6, 2024 · 0 comments

Comments

@teolemon
Copy link
Member

teolemon commented Oct 6, 2024

Problem

Currently, we don't check what is sent in the nutrition, whereas on the website we have multiple checks.

Proposed solution

Add checks that can return warnings

  • Ensure the relation between kJ / kCal is correct
  • Energy should not exceed 3800 kJ (?)
  • Generally speaking, all items shouldn't exceed 100g if it's per 100g (e.g. Fat, Carbohydrates, ...)
  • Saturated fat should not exceed fat
  • Sugars should not exceed carbohydrates
  • Compute sodium / salt

Part of

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Status: To do
Development

No branches or pull requests

1 participant