Skip to content

Fix #315#319

Open
samatstariongroup wants to merge 2 commits into
developmentfrom
fix-315-uml4net-821
Open

Fix #315#319
samatstariongroup wants to merge 2 commits into
developmentfrom
fix-315-uml4net-821

Conversation

@samatstariongroup

Copy link
Copy Markdown
Member

Fixes #315.

What

Upgrade uml4net 8.1.2 -> 8.2.1, which resolves bare same-document hrefs (href="#id") for subsettedProperty / redefinedProperty, so the previously-dropped secondary subset/redefine references now reach generated code.

Changes

  • Bump uml4net.HandleBars, uml4net.xmi.Extensions.EnterpriseArchitect, uml4net.Reporting to 8.2.1.
  • Fix an ordering bug in PropertyHelper (DTO/POCO class emit) exposed by 8.2.1: enum-typed default values now resolve as "different than default", which made the raw-value branch emit invalid C# (= public;). The enum-default branch is now checked first -> = VisibilityKind.Public;.
  • Regenerate affected surfaces: AutoGenDto, AutoGenPoco, JSON AutoGenDeSerializer, XMI AutoGenWriters, DAL AutoGenPocoExtension, and sync the stale generated Extensions/AutoGenExtensions/ElementExtensions.cs. Serializer/Comparer/MessagePack/XMI-Reader/ElementFactory surfaces access via interface types and were unaffected.
  • Update the 10 affected Expected golden files.

Verification

  • Canonical example confirmed: IUsage.directedUsage now carries both the directedFeature and usage subsets.
  • Full solution builds (0 errors); all test projects pass (CodeGenerator 319, Extensions 203, Json 59, Xmi 42, Kpar 25, + Dal/MessagePack/Viewer/Core/TextualNotation/REST) - 0 failures.

samatstariongroup and others added 2 commits July 1, 2026 12:09
…d needs to be fixed again. The old state was producing infinite loop. For now, the redefinition mechanism is broken and had to be restored. Ownership guard is ok but most of changes on the PropertyHelper.cs breaks UML redefintion rules. Following task is to revert those change to be on a UML strict redefintiion rule but update extend implemenation to not enter into infinite loop
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 DTO/POCO drop 22 secondary subsetted/redefined property refs (uml4net bare-href #id not resolved)

2 participants