flyvictor/fortune — pull request #12 by bbraithwaite (2014-05-08 18:37:37+00:00)
Title: fixed error where invalid include name would cause hang

Fixed an issue where submitting an invalid include would cause the request to hang.

Added guard to that if path (include name) didn't exist in the schema it wouldn't cause a crash:

if (_.isArray(schema[path])) {

Same thing with the line here:

if(relation && relation.external){