August 2025
Intermediate to advanced
294 pages
6h 59m
English
Tunez can now accept form data that should be more structured, instead of just text. We’re also looking at data in a smaller scope. Instead of “any artist in the world that ever was”, which is a massive data set, we’re looking at albums for any individual artist, which is a much smaller and well-defined list.
Let’s set some stricter rules for this data, for better data integrity.
With Albums, we want users to enter a valid year for an album’s year_released attribute, instead of any old integer, and a valid-looking image URL for the cover_image_url attribute. We can enforce these rules with validations.
Any defined validations are checked when calling an action, ...
Read now
Unlock full access