Data validation can ensure, on runtime, the validity of any given object with a defined schema.
Having good types is not sufficient. There is always a possibility that the data doesn't conform to the expected format. Hence, the necessity for data validation.
Collection
[
|
...
]