Any reason you have not used a direct jsonchema.Draft4Validator method for validation in the class you have introduced?
I was thinking if we could have a separate 'validate()' in your GenericJSONSchema class that would use something like : "Draft4Validator(schema).validate(obj)" instead of calling schema's validate(). That way we need not worry about overriding the existing functionality of glance.schema.Schema (properties being None, and that causing a problem) or modifying raw(). Please let me know if I am missing something here.
Hi Bhagyashree,
Any reason you have not used a direct jsonchema. Draft4Validator method for validation in the class you have introduced? r(schema) .validate( obj)" instead of calling schema's validate(). That way we need not worry about overriding the existing functionality of glance. schema. Schema (properties being None, and that causing a problem) or modifying raw(). Please let me know if I am missing something here.
I was thinking if we could have a separate 'validate()' in your GenericJSONSchema class that would use something like : "Draft4Validato
Thanks.