Skip to content

adapter.json: Tighten dataSpecification ref type#581

Merged
s-heppner merged 1 commit into
eclipse-basyx:developfrom
rwth-iat:improve/tighten-dataSpecification-ref-type
Jun 29, 2026
Merged

adapter.json: Tighten dataSpecification ref type#581
s-heppner merged 1 commit into
eclipse-basyx:developfrom
rwth-iat:improve/tighten-dataSpecification-ref-type

Conversation

@JAB1305

@JAB1305 JAB1305 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Previously, JSON deserialization accepted both ModelReference and ExternalReference for the dataSpecification field of EmbeddedDataSpecification. As the spec (constraint AASc-3a-050) requires EmbeddedDataSpecification.dataSpecification to be an ExternalReference, JSON deserialization was tightened to only accept ExternalReference. It now matches the requirement and the current behavior of XML deserialization.

Fixes #567

Previously, JSON deserialization accepted both `ModelReference` and `ExternalReference` for the `dataSpecification` field of `EmbeddedDataSpecification`. As the spec (constraint AASc-3a-050) requires `EmbeddedDataSpecification.dataSpecification` to be an `ExternalReference`, JSON deserialization was tightened to only accept `ExternalReference`. It now matches the requirement and the current behavior of XML deserialization.

Fixes eclipse-basyx#567

@s-heppner s-heppner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@s-heppner s-heppner merged commit 6c67c08 into eclipse-basyx:develop Jun 29, 2026
13 checks passed
@s-heppner s-heppner deleted the improve/tighten-dataSpecification-ref-type branch June 29, 2026 08:09
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