You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of .isValid() does not detect missing primary key property in .create().
const User = ds.createModel('User', {
id: {type: 'string', id: true},
email: {type: 'string'}
});
// Does not throw
it('should throw if id is not specified', async () => {
await User.create({name: 'Carro'}).should.be.rejected();
});
Acceptance criteria
Attempting to create a model without a primary key should throw an error
Add test(s)
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.
The current implementation of
.isValid()
does not detect missing primary key property in.create()
.Acceptance criteria
The text was updated successfully, but these errors were encountered: