You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
adapter.json: Entity serializes an empty specificAssetIds array, which the schema rejects #636
An entity without specific asset ids therefore serializes as "specificAssetIds": [], and every array in the AAS JSON schema carries minItems: 1. Since AASd-014 forbids specific asset ids on a co-managed entity, every co-managed Entity this SDK writes is invalid JSON, the example AAS included.
Reproduction against the official schema (aas-specs-metamodel v3.1.2):
JsonSerializationSchemaTest.test_full_example_serialization and test_aas_example_serialization both catch this as soon as the schema file is actually present, which it isn't in CI; see the companion issue on the schema path.
The neighbouring attributes in the same method, and AssetInformation at L320, already guard on the collection being non-empty; Entity is the only place that doesn't. I checked the other element types against the schema (Submodel, SubmodelElementCollection, SubmodelElementList, Property, Operation, AnnotatedRelationshipElement, AssetAdministrationShell, ConceptDescription) and they all serialize valid documents.
Activity
adapter.json: Omit `specificAssetIds` on an `Entity` without any (#638)
zrgt commentedon Oct 6, 2026
Fixed in #638