Skip to content

Commit

Permalink
remove empty error
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanoff committed Jun 24, 2017
1 parent 855470c commit 9df7480
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

**What Was Done:**

- remove empty error
- avoid deep recursion


Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ exports.showModelsExpanded = function () {
// check for required fields recursively
function validateObjectRequired(options, modelObject, entity, parents, errors) {
for (var key in modelObject) {
if (!modelObject[key].type) {
if (!modelObject[key].type && entity) {
validateObjectRequired(
options,
modelObject[key],
Expand Down

0 comments on commit 9df7480

Please sign in to comment.