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;