Skip to content

Add named union support - #683

Merged
mristin merged 1 commit into
mainfrom
mristin/Support-named-unions
Sep 10, 2026
Merged

mristin merged 1 commit into
mainfrom
mristin/Support-named-unions

Conversation

@mristin

@mristin mristin commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

AAS Part 2's upcoming Query language needs named unions -- tagged unions resolved by structural shape, model type, or a mix of both -- as a first-class meta-model construct.

The PR is large because a new meta-model construct has to be parsed, represented in the intermediate model, and code-generated consistently everywhere, so the change necessarily cuts through every stage of the transpilation system.

AAS Part 2's upcoming Query language needs named unions -- tagged
unions resolved by structural shape, model type, or a mix of both --
as a first-class meta-model construct.

The PR is large because a new meta-model construct has to be parsed,
represented in the intermediate model, and code-generated consistently
everywhere, so the change necessarily cuts through every stage of the
transpilation system.
@mristin
mristin force-pushed the mristin/Support-named-unions branch from a52a3b8 to 33431ad Compare September 10, 2026 12:13
@mristin
mristin merged commit bcb5b99 into main Sep 10, 2026
5 checks passed
@mristin
mristin deleted the mristin/Support-named-unions branch September 10, 2026 12:20
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 34475495577

Warning

Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes.
Quick fix: rebase this PR. Learn more →

Coverage increased (+0.4%) to 85.242%

Details

  • Coverage increased (+0.4%) from the base build.
  • Patch coverage: Could not be determined — this PR's diff is too large for GitHub to return (406 error at GitHub).
  • 2091 coverage regressions across 59 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

2091 previously-covered lines in 59 files lost coverage.

Top 10 Files by Coverage Loss Lines Losing Coverage Coverage
aas_core_codegen/intermediate/_translate.py 241 85.63%
aas_core_codegen/parse/_translate.py 147 85.3%
aas_core_codegen/java/lib/_generate_types.py 104 83.82%
aas_core_codegen/csharp/lib/_generate_types.py 93 79.45%
aas_core_codegen/typescript/lib/_generate_types.py 88 86.24%
aas_core_codegen/golang/lib/_generate_types.py 86 83.13%
aas_core_codegen/python/lib/_generate_types.py 72 85.94%
aas_core_codegen/xsd/main.py 64 76.69%
aas_core_codegen/cpp/lib/_generate_types.py 63 85.0%
aas_core_codegen/jsonschema/main.py 59 81.4%

Coverage Stats

Coverage Status
Relevant Lines: 39816
Covered Lines: 33940
Line Coverage: 85.24%
Coverage Strength: 2.56 hits per line

💛 - Coveralls

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.

2 participants