bpmn-io / bpmnlint

Validate BPMN diagrams based on configurable lint rules.
MIT License
125 stars 37 forks source link

feat: add nested resolver #93

Closed philippfromme closed 2 years ago

philippfromme commented 2 years ago

Adds nested resolver that combines one or more resolvers. Resolvers are prioritized from lowest to highest.

const resolver = new NestedResolver([
  new StaticResolver(...), // lowest priority
  new StaticResolver(...),
  new StaticResolver(...) // highest priority
]);

Related to https://github.com/camunda/camunda-modeler/issues/3145

philippfromme commented 2 years ago

As discussed with @nikku the resolver will be added to @camunda/linting instead since it's trivial to implement.