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

model.base: fix ModelReference.resolve() error messages for elements contained in SubmodelElementLists #128

Conversation

jkhsjdhjs
Copy link
Contributor

Some error messages raised in ModelReference.resolve() make use of the resolved_keys local list variable, which keeps track of all Identifiers, id_shorts and SubmodelElementList indices that have been resolved successfully.
Instead of SubmodelElementList indices, the children's id_shorts were added to this list previously, which is inconsistent, and soon would cease to work anyway, since AASd-120 prohibits specifying id_shorts for children of SubmodelElementList.
This commit fixes this such that indices are added and adjusts the tests accordingly.

…s contained in `SubmodelElementLists`

Some error messages raised in `ModelReference.resolve()` make use of the
`resolved_keys` local list variable, which keeps track of all
Identifiers, id_shorts and `SubmodelElementList` indices that have been
resolved successfully.
Instead of `SubmodelElementList` indices, the children's id_shorts were
added to this list previously, which is inconsistent, and soon would
cease to work anyway, since AASd-120 prohibits specifying id_shorts for
children of `SubmodelElementList`.
This commit fixes this such that indices are added and adjusts the tests
accordingly.
@jkhsjdhjs jkhsjdhjs mentioned this pull request Oct 2, 2023
@s-heppner
Copy link
Contributor

Lgtm

@s-heppner s-heppner merged commit 09b68a4 into eclipse-basyx:improve/V30 Oct 3, 2023
5 checks passed
@s-heppner s-heppner deleted the fix/ModelReference_resolved_path_for_SubmodelElementLists branch October 3, 2023 11:04
@s-heppner s-heppner added the v3.0 label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants