-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unique ID enforcement? #685
Comments
Hello @artificial-aidan , there is indeed no mechanism that prevents you from using the same ID multiple times. More generally, errors are not yet implemented. Now that Prismock is stable enough IMO, I'm starting to think about introducing those mechanisms. I might do so after the current issues get fixed. |
I am interested in the Prismock project, and I noticed the recent issue raised by @artificial-aidan. I was wondering if you have plans to introduce such a mechanism soon. If you do not have plans to implement this feature in the near future, I would be interested in contributing to the project by implementing it myself. I believe that enforcing ID uniqueness is important for ensuring data integrity, and I would be excited to help improve Prismock in this way. |
@morintd Hello, interested also in this library, if you may give some directions, maybe we can help? |
Hello @charlesilieff , @sledorze , the search part of |
Would it make sense to implement (errors for violating) |
After #1105 was merged, I was expecting |
I'm using
@@id
to set a field as the ID, but prismock lets me create multiple objects with the same ID. Is this expected? I couldn't find anywhere in the code that would enforce that.The text was updated successfully, but these errors were encountered: