Make schema-based validation more generic.
Refactor schema-parsing into property parser module.