Skip to content

[V3] Fix typescript unique ID-Short constraint - #569

Merged
mristin merged 3 commits into
eclipse-aascw:mainfrom
empwilli:empwilli/typescript-unique-id-short-constraint
Jan 29, 2026
Merged

mristin merged 3 commits into
eclipse-aascw:mainfrom
empwilli:empwilli/typescript-unique-id-short-constraint

Conversation

@empwilli

@empwilli empwilli commented Jan 20, 2026 •

Copy link
Copy Markdown
Contributor

The implementation of the ID-Short uniqueness constraint in typescript fails
when the ID-Short is unset. While an unset ID-Short is invalid in many cases,
this check should instead only return false when multiple SubmodelElements
have the same ID-Short. Hence, we adapt it to ignore unset ID-Shorts.)

Fixes #568.

@empwilli
empwilli requested a review from mristin January 20, 2026 08:38
@mristin mristin changed the title Fix typescript unique ID-Short constraint [V3] Fix typescript unique ID-Short constraint Jan 22, 2026
@empwilli
empwilli force-pushed the empwilli/typescript-unique-id-short-constraint branch from 277588f to 3a242e0 Compare January 23, 2026 12:27
The implementation of the ID-Short uniqueness constraint in typescript
fails when the ID-Short is unset. While an unset ID-Short is invalid in
many cases, this check should instead only return false when multiple
SubmodelElements have the same ID-Short. Hence, we adapt it to ignore
unset ID-Shorts.
@empwilli
empwilli force-pushed the empwilli/typescript-unique-id-short-constraint branch from 3a242e0 to 5166076 Compare January 28, 2026 14:44
@mristin
mristin merged commit 20b9497 into eclipse-aascw:main Jan 29, 2026
10 checks passed
mristin added a commit that referenced this pull request Feb 3, 2026
* Extend ``must_find`` to constants (#564)
* Add ``is_literal_of`` method to symbol table (#565)
* Add literal value set to IR (#566)
* Expose mapping from and to primitive types (#567)
* Fix typescript unique ID-Short constraint (#569)
* Track descendants of constrained primitives (#573)
* Make symbol table pickle-able (#574)
* Fix cpp 11 compilation issue (#572)
* Fix XML serialization of float in Python (#575)

This version provides a set of ergonomic methods for
aas-core-testdatagen so that we can generate the test data using
reflection on symbol table more easily.

In addition, it contains a couple of minor fixes to C++ and Python
generators.
@mristin mristin mentioned this pull request Feb 3, 2026
mristin added a commit that referenced this pull request Feb 3, 2026
* Extend ``must_find`` to constants (#564)
* Add ``is_literal_of`` method to symbol table (#565)
* Add literal value set to IR (#566)
* Expose mapping from and to primitive types (#567)
* Fix typescript unique ID-Short constraint (#569)
* Track descendants of constrained primitives (#573)
* Make symbol table pickle-able (#574)
* Fix cpp 11 compilation issue (#572)
* Fix XML serialization of float in Python (#575)

This version provides a set of ergonomic methods for
aas-core-testdatagen so that we can generate the test data using
reflection on symbol table more easily.

In addition, it contains a couple of minor fixes to C++ and Python
generators.
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

Successfully merging this pull request may close these issues.

[V3] ID-short uniqueness constraints fails on unset ID-Short for TypeScript

2 participants