From a41ccfa835e0742dc1606f508c5bc2a40fc1305d Mon Sep 17 00:00:00 2001 From: Alan Plum Date: Wed, 7 Jan 2015 10:51:18 +0100 Subject: [PATCH] Fixed hilarious bug (sorry). --- js/server/modules/org/arangodb/foxx/schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/server/modules/org/arangodb/foxx/schema.js b/js/server/modules/org/arangodb/foxx/schema.js index 72cdb451fd..c9e6f3a8f0 100644 --- a/js/server/modules/org/arangodb/foxx/schema.js +++ b/js/server/modules/org/arangodb/foxx/schema.js @@ -66,7 +66,7 @@ function toJSONSchema(id, schema) { return jsonSchema; } - _.each(schema.children, function (attributeDescription, attributeName) { + _.each(description.children, function (attributeDescription, attributeName) { var attributeSchema = {type: attributeDescription.type}, rules = attributeDescription.rules, flags = attributeDescription.flags;