kbss-cvut / s-forms

SForms - Semantic form generator and processor. For ontology-based smart forms.
GNU Lesser General Public License v3.0
4 stars 7 forks source link

Refactor validators to seperate isApplicable and validate logic #312

Open LaChope opened 5 months ago

LaChope commented 5 months ago

Validator should be object having two methods:

isApplicable(question)
validate(question, intl)

The goal is also to remove method FormUtils.hasValidationLogic() whose logic should be implemented rather in separate validators -- i.e. each validator should know when it isApplicable(question).

A/C: