Skip to content
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

Non-unique names are not supported in the dataModel #60

Open
chrisala opened this issue Mar 4, 2020 · 0 comments
Open

Non-unique names are not supported in the dataModel #60

chrisala opened this issue Mar 4, 2020 · 0 comments

Comments

@chrisala
Copy link
Collaborator

chrisala commented Mar 4, 2020

It's possible right now to use duplicate names in the data model in different nested contexts, however when the code matches a viewModel to the corresponding data model it does a full search by name and will always find the first occurrence of that name.
This will lead to incorrect application of validation rules, constraints and behaviours.

We should either validate and disallow duplicates, or use the current context to be able to correctly identify which data model element is meant when referencing the dataModel from the view model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant