Skip to content

Expose mapping from and to primitive types - #567

Merged
mristin merged 1 commit into
mainfrom
mristin/Expose-mapping-primitive-type
Jan 13, 2026
Merged

mristin merged 1 commit into
mainfrom
mristin/Expose-mapping-primitive-type

Conversation

@mristin

@mristin mristin commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

We expose intermediate.PRIMITIVE_TYPE_TO_PYTHON_TYPE and PYTHON_TYPE_TO_PRIMITIVE_TYPE so that downstream clients can test their in-memory python serializations.

Notably, we use this in aas-core-testdatagen to verify the structural constraints on pre-serialized instances.

We expose `intermediate.PRIMITIVE_TYPE_TO_PYTHON_TYPE` and
`PYTHON_TYPE_TO_PRIMITIVE_TYPE` so that downstream clients can test
their in-memory python serializations.

Notably, we use this in aas-core-testdatagen to verify the structural
constraints on pre-serialized instances.
@mristin
mristin merged commit 4a8d49a into main Jan 13, 2026
9 checks passed
@mristin
mristin deleted the mristin/Expose-mapping-primitive-type branch January 13, 2026 14:28
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.

1 participant