Skip to content

Enhance error messages with idShortPath #95

@JS-Aibel

Description

@JS-Aibel

When viewing the different errors for a particular element, the elements are currently displayed using their index positions, for example:

Constraint AASd-002 violated: idShort shall match [a-zA-Z][a-zA-Z0-9_]* @ /submodels/0/submodel_elements/0/value/0
Constraint AASc-3a-008 violated: embeddedDataSpecifications[0].definition is missing @ /concept_descriptions/0

In my opinion, this makes it difficult to locate the specific element, as the user has to manually count indexes. Additionally, for SubmodelElementCollections, the index numbers can be misleading because the elements within a collection are not ordered.

Proposed Solution
A possible improvement would be to display the idShortPath as described in IDTA-01002-3-0 Part 2: Application Programming Interfaces. This would make it much easier for users to navigate directly to the element in question.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions