Skip to content

[Fix #1276] Ignoring isNull for JacksonModel serialization#1277

Merged
fjtirado merged 1 commit intoserverlessworkflow:mainfrom
fjtirado:Fix_#1276
Mar 30, 2026
Merged

[Fix #1276] Ignoring isNull for JacksonModel serialization#1277
fjtirado merged 1 commit intoserverlessworkflow:mainfrom
fjtirado:Fix_#1276

Conversation

@fjtirado
Copy link
Copy Markdown
Collaborator

Fix #1276

Copilot AI review requested due to automatic review settings March 30, 2026 10:59
@fjtirado fjtirado changed the title [Fix #1276] Ignoing isNull for JacksonModel serialization [Fix #1276] Ignoring isNull for JacksonModel serialization Mar 30, 2026
…ization

Signed-off-by: fjtirado <ftirados@redhat.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes #1276 by preventing Jackson from treating WorkflowModel.isNull() as a serializable bean property when working with the Jackson-backed model implementation.

Changes:

  • Add @JsonIgnore to JacksonModel.isNull() to keep it out of Jackson serialization output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 51 to 54
@Override
@JsonIgnore
public boolean isNull() {
return node.isNull();
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a regression test that serializing a JacksonModel with Jackson (e.g., ObjectMapper.writeValueAsString on a JacksonModel or WorkflowModel reference) does not emit a "null" field derived from isNull(). This change is intended to prevent Jackson from treating isNull as a bean property, but it’s currently untested in this module despite existing JacksonModel tests.

Copilot uses AI. Check for mistakes.
@fjtirado fjtirado merged commit 3ea385e into serverlessworkflow:main Mar 30, 2026
3 checks passed
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.

WorkflowModel.isNull should be ignored for JacksonObjectModel

3 participants