updated schema validation code in order to work properly with last jsonschema stable version

jsonschema stable version