Skip to content

docs(rest): Fix VariableInstanceDto batchId description - #3102

Merged
kthoms merged 1 commit into
mainfrom
backport/cibseven-1076-variable-instance-openapi-typo
Jun 11, 2026
Merged

kthoms merged 1 commit into
mainfrom
backport/cibseven-1076-variable-instance-openapi-typo

Conversation

@hauptmedia

Copy link
Copy Markdown
Collaborator

Summary

Backports the OpenAPI template typo fix from cibseven/cibseven#250.

The batchId property description in VariableInstanceDto.ftl ended with a stray < character:

The id of the batch that this variable instance belongs to.<

This PR removes that extra character so the generated OpenAPI description is correct.

Source / Attribution

Operaton Adaptation

The source commit changed the CIBSeven template path:

engine-rest/engine-rest-openapi/src/main/templates/models/org/cibseven/bpm/engine/rest/dto/runtime/VariableInstanceDto.ftl

Operaton has the same template under the Operaton namespace:

engine-rest/engine-rest-openapi/src/main/templates/models/org/operaton/bpm/engine/rest/dto/runtime/VariableInstanceDto.ftl

The actual text change is identical.

Reviewer Notes

This is a generated OpenAPI documentation/spec cleanup only. It does not change REST runtime behavior or DTO serialization.

The typo was present in Operaton before this PR and appeared in generated openapi.json for VariableInstanceDto.batchId. After this change, the generated schema description no longer contains the stray <.

Verification

./mvnw -pl engine-rest/engine-rest-openapi -am \
  -DskipTests -Dskip.frontend.build=true package

Result: BUILD SUCCESS. This runs OpenAPI JSON generation and schema validation.

Checked generated output:

rg -n "The id of the batch that this variable instance belongs to\." \
  engine-rest/engine-rest-openapi/target/generated-sources/openapi-json/openapi.json \
  engine-rest/engine-rest-openapi/target/classes/openapi.json

Found the corrected description in both generated files.

rg -n "The id of the batch that this variable instance belongs to\.<" \
  engine-rest/engine-rest-openapi/target/generated-sources/openapi-json/openapi.json \
  engine-rest/engine-rest-openapi/target/classes/openapi.json \
  engine-rest/engine-rest-openapi/src/main/templates

No matches.

Related to cibseven/cibseven#250

Backported commit fbbe4b6be68fa9fefd61402e87cdd2cce2d92961 from repository https://github.com/cibseven/cibseven.

Original author: Oleg Skrypnyuk <[email protected]>

Operaton adaptation: Applied the same OpenAPI template typo fix in the org/operaton template path. The source commit changed org/cibseven/bpm/engine/rest/dto/runtime/VariableInstanceDto.ftl; Operaton keeps the equivalent template under org/operaton/bpm/engine/rest/dto/runtime/VariableInstanceDto.ftl.

Backport change unit: 1076
@hauptmedia hauptmedia added bug Something isn't working scope:core-api Changes to the core API: engine, dmn-engine, feel-engine, REST API, OpenAPI api:rest Changes affecting the REST API backport:cibseven Changes backported from cibseven labels Jun 9, 2026
@github-actions github-actions Bot removed scope:core-api Changes to the core API: engine, dmn-engine, feel-engine, REST API, OpenAPI api:rest Changes affecting the REST API labels Jun 9, 2026
@hauptmedia hauptmedia added api:rest Changes affecting the REST API scope:core-api Changes to the core API: engine, dmn-engine, feel-engine, REST API, OpenAPI labels Jun 9, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

@kthoms kthoms added documentation Improvements or additions to documentation and removed scope:core-api Changes to the core API: engine, dmn-engine, feel-engine, REST API, OpenAPI labels Jun 11, 2026
@kthoms kthoms added this to the 2.2.0 milestone Jun 11, 2026
@kthoms
kthoms merged commit 242423f into main Jun 11, 2026
21 checks passed
kthoms pushed a commit that referenced this pull request Jun 11, 2026
Related to cibseven/cibseven#250

Backported commit fbbe4b6be68fa9fefd61402e87cdd2cce2d92961 from repository https://github.com/cibseven/cibseven.

Original author: Oleg Skrypnyuk <[email protected]>

Operaton adaptation: Applied the same OpenAPI template typo fix in the org/operaton template path. The source commit changed org/cibseven/bpm/engine/rest/dto/runtime/VariableInstanceDto.ftl; Operaton keeps the equivalent template under org/operaton/bpm/engine/rest/dto/runtime/VariableInstanceDto.ftl.

Backport change unit: 1076

(cherry picked from commit 242423f)
@kthoms
kthoms deleted the backport/cibseven-1076-variable-instance-openapi-typo branch June 11, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api:rest Changes affecting the REST API backport:cibseven Changes backported from cibseven bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants