Closed
Description
What?
JSON Schema defines the "modelType" for "RelationshipElement" as "const": "RelationshipElement"
, which for the Part 1 domain was translated to "pattern": "RelationshipElement"
.
This however also maps to "modelType": "AnnotatedRelationshipElement"
, therefore a validator compares an instance of "AnnotatedRelationshipElement" against the schema for "RelationshipElement".
How?
Possible solutions, sorted by preference:
A) Check if "pattern" in OpenAPI can be replaced with "const"
B) Change "pattern": "RelationshipElement"
to "pattern": "^RelationshipElement$"
also for all other SubmodelElements / all "modelType" attributes.
C) Change "pattern": "RelationshipElement"
to "pattern": "^RelationshipElement$"
only.