Description
Problem
In the Open API Freemarker abstraction, there are two places where the same information must be added when extending the External Task query with a new criterion:
- engine-rest/engine-rest-openapi/src/main/templates/models/org/camunda/bpm/engine/rest/dto/runtime/externaltask/ExternalTaskQueryDto.ftl
- engine-rest/engine-rest-openapi/src/main/templates/lib/commons/external-task-query-params.ftl
Reasoning
It is likely that the information in both places diverge in the future
Solution
Consolidate the redundant information to a central place
Hint
It affects not only the External Task Entity; All files located under engine-rest/engine-rest-openapi/src/main/templates/lib/commons/*-query-params.ftl might have redundancies