bpmn-io / bpmnlint

Validate BPMN diagrams based on configurable lint rules.
MIT License
121 stars 36 forks source link

Be Able to Provide More Information When Reporting Error #74

Closed philippfromme closed 2 years ago

philippfromme commented 2 years ago

Is your feature request related to a problem? Please describe

Recently, an optional path argument was added to Reporter#report to add more information to the error. In some cases there is still not enough information.

Example:

<bpmn:businessRuleTask />

This business rule task is missing an extension element that is required. The path could be specified as [ 'extensionElements', 'values' ] but there is no information about what type of extension element is missing. For any missing property that is isMany=true the information about the type is missing.

Describe the solution you'd like

Either

or

Describe alternatives you've considered

Additional context

Assumptions about the error could be derived from the error message itself.

nikku commented 2 years ago

Closed via https://github.com/bpmn-io/bpmnlint/pull/75 I guess?

philippfromme commented 2 years ago

Sorry, yes. 👍🏻