4 ms·
If you read the whole example: lat = custom validator b = shorthand for boolean (as is s for string) ! = optional So for me reading the whole example its ve
by philliphaydon 7y ago
If you read the whole example:
lat = custom validator
b = shorthand for boolean (as is s for string)
! = optional
So for me reading the whole example its very easy to understand and digest.
- eventreduce 7y agoYes, reading the docs explains what these keywords mean. But by just looking at the schema it is impossible to understand what that is. And if you check the definition of clean code which is something like "intuitive understandable" then it comes clear that this is not clean.
- philliphaydon 7y agoAh I see where you’re coming from. Good point.
- catlifeonmars 7y agoThe “!” for optional is the only thing that confused me. Why not “?” for optional?
- yusufnb 7y agoUpdated to ? in 1.0.3
- philliphaydon 7y agoNice that makes more sense!