added option to validate via json schema