Skip to content

Develop#39

Merged
wobrschalek merged 12 commits into
mainfrom
develop
Jun 13, 2026
Merged

Develop#39
wobrschalek merged 12 commits into
mainfrom
develop

Conversation

@wobrschalek

Copy link
Copy Markdown
Contributor

No description provided.

Switched expand_minimal_json_to_full_json(...) in src/flexo_syside_lib/core.py:289 to the direct non-textual path:

  json.loads -> Sema.resolve -> serialize

  That keeps implied relationships without round-tripping through textual SysML. I also updated the tests in tests/test_core.py:454 to match the new behavior.
DeserializedModel.link(...) is too narrow for this because it only resolves pending references. The public API that matches your need is syside.Sema.resolve(...), whose doc
  says it will “Link and resolve semantic rules for documents”. That is the missing step for implied relationships. SerializationOptions.include_implied=True only affects what
  gets emitted during serialization; it does not create implied elements by itself.

  In practice, this worked locally on your sample:

  1. syside.json.loads(...)
  2. syside.Sema().resolve([deserialized_model.document], env.index(), env.lib, reporter)
  3. syside.serialize(..., options_with_include_implied=True)

  That restored the implied Subclassification without going through textual SysML.
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 70%)

See analysis details on SonarQube Cloud

@wobrschalek wobrschalek merged commit 4ae95cd into main Jun 13, 2026
9 of 10 checks passed
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