Skip to content

Commit

Permalink
[V3] Revert order of Embedded_data_specification attributes (#353)
Browse files Browse the repository at this point in the history
In #328, we had erroneously made
`Embedded_data_specification.data_specification` optional, changing
the order of the attributes of this class, as optional attributes have
to be specified after mandatory ones.

In #329, we reverted the `Optional`, but kept the order of
the attributes, as this didn't affect our code. However, as a result, 
the generated schema files that depend on the order of the attributes 
were suddenly not backward compatible anymore, as found
in [aas-specs#477].

This reverts the order of the attributes in class
`Embedded_data_specification`.

[aas-specs#477]: admin-shell-io/aas-specs#477
  • Loading branch information
s-heppner authored Oct 30, 2024
1 parent f9cbdb3 commit 77d3442
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions aas_core_meta/v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -5102,19 +5102,19 @@ class Data_specification_content:
class Embedded_data_specification:
"""Embed the content of a data specification."""

data_specification_content: Data_specification_content
"""Actual content of the data specification"""

data_specification: Reference
"""Reference to the data specification"""

data_specification_content: Data_specification_content
"""Actual content of the data specification"""

def __init__(
self,
data_specification_content: Data_specification_content,
data_specification: Reference,
data_specification_content: Data_specification_content,
) -> None:
self.data_specification_content = data_specification_content
self.data_specification = data_specification
self.data_specification_content = data_specification_content


class Data_type_IEC_61360(Enum):
Expand Down

0 comments on commit 77d3442

Please sign in to comment.