Open ojongerius opened 6 years ago
Validation of particularly createCommunityEvent is a big clunky. We could create an object, populate it with all the fields that are appropriate and do one validation instead. This can be re-used for the update function (#187) too.
Possible library that is up to date and fast would be https://github.com/epoberezkin/ajv
Validation of particularly createCommunityEvent is a big clunky. We could create an object, populate it with all the fields that are appropriate and do one validation instead. This can be re-used for the update function (#187) too.
Possible library that is up to date and fast would be https://github.com/epoberezkin/ajv