Skip to content

Pattern for ModelType "RelationshipElement" is ambiguous  #156

Closed
@sebbader-sap

Description

@sebbader-sap

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.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions