validictory + JSONSchema.net = Good combination for automated REST API testing

Install the validictory Python module : https://github.com/jamesturk , /validictory/ http://validictory.readthedocs.io

Generate the JSON schema for validation based on the unique JSON from your endpoints : http://jsonschema.net

Compare the schema vs the returned JSON. Sample:

try:
    validictory.validate(json_response_from_endpoint, json_validation_schema)
except ValueError, error:
    print error
    self.fail("that did not work out")

Success.

I’ll add some validictory snippets when I get around to it.