raise exception if schema not valid
Merge pull request #7 from dincamihai/validation-exception

raise exception if schema not valid