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

Validate units for recipe & disclose list of allowed ingredient units for clients #2

Open
Plsr opened this issue Apr 16, 2022 · 0 comments

Comments

@Plsr
Copy link
Owner

Plsr commented Apr 16, 2022

Currently, the client decides which units are allowed and the server accepts whatever.

The server should validate the units are within some means. In the same turn, it should also disclose a list of allowed units (e.g. GET recipe/ingredients/allowed-units) so the clients know what the can allow the user to choose from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant