jedireza / aqua

:bulb: A website and user system starter
https://jedireza.github.io/aqua/
MIT License
1.38k stars 356 forks source link

Make Joi schemas more consistent by removing calls to `keys()` #249

Closed jedireza closed 6 years ago

jedireza commented 7 years ago

This is basically the same as Joi.object([schema]) [...]

Some people like to use keys() to make the code more explicit (this is style only).

https://github.com/hapijs/joi/blob/master/API.md#joiobjectkeysschema-notation