Comment 17 for bug 1585917

Revision history for this message
Dharini Chandrasekar (dharini-chandrasekar) wrote :

Hi Bhagyashree,

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.

Thanks.