Skip to content

Commit

Permalink
fix: minor docs updates and 1 test fix for revised 'required' format
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelvesavuori committed Mar 5, 2024
1 parent 4edae94 commit 5b76dcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ The general shape it uses is:
"properties": {
"username": {
"type": "string"
}
},
"required": ["username"]
},
"required": ["username"]
}
}
```

Expand Down Expand Up @@ -279,9 +279,9 @@ This example shows 3 levels of nesting with objects.
"something": "number"
}
}
}
},
"required": ["things"]
},
"required": ["things"]
}
```

Expand Down
6 changes: 3 additions & 3 deletions tests/MikroValid.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1003,9 +1003,9 @@ test('It should fail when missing a required key in the child of a nested object
something: { type: 'number' }
}
}
}
},
required: ['things']
},
required: ['things']
}
},
{
things: {
Expand Down

0 comments on commit 5b76dcc

Please sign in to comment.