-
Notifications
You must be signed in to change notification settings - Fork 35
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
Models with different cases are mapped to the same file #132
Comments
Here is my idea how to address this issue:
Not until we resolve strongloop/loopback#397, as the current workaround relies on case-sensitive model names. Once we have a proper solution, I am all for making model names case insensitive. |
+1 for |
I had the impression that we already have the |
|
We might also be able to add |
👍 |
On second though, are all these auto-computed properties worth the effort? Also the solution proposed here creates more work for workspace consumers, as they have to be aware of the new What if we implemented strongloop/loopback#397 first and then added validation that the model name must be unique within the facet, case-insensitively? |
@ritch @raymondfeng ping, what's your opinion on the comment above? |
I am proposing to implement a validation rule that the model name must me unique case-insensitively within the fact. It is the easiest possible solution to fix the problem and it will not require any extra work in downstream projects like Arc and generator-loopback. |
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 |
We can define models as
Pet
andpet
. The runtime can handle that and treat them as different models. But the workspace maps both of them topet.json
. As a result, we lost one of two model definitions.I understand the file mapping is designed to support operating system such as Mac or Windows which has case-insensitive file names by default.
Should we make model names case insensitive too?
The text was updated successfully, but these errors were encountered: