Skip to content

adapter.json: Tighten dataSpecification ref type#581

Open
JAB1305 wants to merge 1 commit into
eclipse-basyx:developfrom
rwth-iat:improve/tighten-dataSpecification-ref-type
Open

adapter.json: Tighten dataSpecification ref type#581
JAB1305 wants to merge 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
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