Skip to content

Use IDL names in minimal union TypeObjects - #339

Closed
Miko997 wants to merge 1 commit into
eclipse-cyclonedds:masterfrom
Miko997:fix-union-member-name-typeobject
Closed

Use IDL names in minimal union TypeObjects#339
Miko997 wants to merge 1 commit into
eclipse-cyclonedds:masterfrom
Miko997:fix-union-member-name-typeobject

Conversation

@Miko997

@Miko997 Miko997 commented Aug 13, 2026

Copy link
Copy Markdown

Fixes #338.

The Python IDL backend escapes union members named value, but Minimal TypeObject generation hashed the escaped Python name. This made its type identifier differ from code generated from the original IDL.

Use the annotated IDL member name for the minimal name hash and cover it with a regression test.

Tests:

  • pytest tests/test_typeobjects.py
  • affected IDL tests, 24 passed
  • critical flake8 checks on the changed files

Signed-off-by: Miko Parkkinen <141511110+Miko997@users.noreply.github.com>
@Miko997 Miko997 closed this Aug 14, 2026
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.

Generated Python code is not interoperable when a union contains a member called "value"

1 participant