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

Consider adding a warning when assigning values to arrays without incrementing the index #1484

Open
mint-thompson opened this issue Jun 28, 2024 · 0 comments

Comments

@mint-thompson
Copy link
Collaborator

Transferred from internal JIRA issue originally created 2023-11-03.

For example:

* entry[SomeSlice] = Reference(my-first-resource)
* entry[SomeSlice] = Reference(my-second-resource)

In this case, it is likely the author meant to write:

* entry[SomeSlice][+] = Reference(my-first-resource)
* entry[SomeSlice][+] = Reference(my-second-resource)

Consider adding this warning. We should think about how this would affect different FSH types. If we only want to warning when assigning a value to the same path of an array, then this would only affect Instances. That could be good since CodeSystems tend to get very long and this could potentially add a lot of time to process them.

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