Skip to content

Remove class based type info from the variable lists in the REST requests - #4320

Open
filiphr wants to merge 1 commit into
flowable:mainfrom
filiphr:json-type-id-polymorphism
Open

filiphr wants to merge 1 commit into
flowable:mainfrom
filiphr:json-type-id-polymorphism

Conversation

@filiphr

@filiphr filiphr commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Removes @JsonTypeInfo(use = Id.CLASS, defaultImpl = ...) from the variable, query variable and form property lists in the flowable-rest and flowable-cmmn-rest request bodies.

The type id was only used to provide the default implementation, which is already the declared type of the lists. With this change the list elements are always deserialized to the declared type (RestVariable, QueryVariable or RestFormProperty) and an @class property in the request is no longer used to select the type.

Check List:

  • Unit tests: NA
  • Documentation: NA

…ests

The variables, query variables and form properties in the REST request
bodies are now always deserialized to their declared type. The type id
was only used to provide the default implementation, which is already
the declared type of the lists.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant