You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently command validation is done only in .json files. I strongly feel pure json notation is rather heavy ( "), which makes it more difficult to read and maintain.
What if we also allow these validations to be written as .js files? Ie, we do
Currently command validation is done only in
.json
files. I strongly feel purejson
notation is rather heavy ("
), which makes it more difficult to read and maintain.What if we also allow these validations to be written as .js files? Ie, we do
instead of
Pro's:
tv4
files (in my opinion anyway, not sure if you agree)Cons:
module.exports
isSchema()
) becomes slightly weaker, but this validation was rather weak in the first placeThe changes needed to the lib code are minimal (exactly one line).
What do you think?
The text was updated successfully, but these errors were encountered: