Skip to content

MODAUD-271 Fix cancellation reason deserialization with consortium source field#241

Open
zakletskyi-epam wants to merge 3 commits intomasterfrom
MODAUD-271
Open

MODAUD-271 Fix cancellation reason deserialization with consortium source field#241
zakletskyi-epam wants to merge 3 commits intomasterfrom
MODAUD-271

Conversation

@zakletskyi-epam
Copy link

@zakletskyi-epam zakletskyi-epam commented Feb 17, 2026

MODAUD-271

Purpose

Fix deserialization error when processing cancellation reasons from Consortium Manager that include a "source" field.

Approach

Modified the cancellation_reason.json schema to set "additionalProperties": true instead of false.
This change causes jsonschema2pojo to generate the CancellationReason Java class with @JsonAnyGetter and @JsonAnySetter annotations, which instructs Jackson to accept and store any unknown fields in an internal map instead of throwing an error.

Pre-Merge Checklist:

Before merging this PR, please go through the following list and take appropriate actions.

  • Does this PR meet or exceed the expected quality standards?
    • Code coverage on new code is 80% or greater
    • Duplications on new code is 3% or less
    • There are no major code smells or security issues
  • Does this introduce breaking changes?
    • Were any API paths or methods changed, added or removed?
    • Were there any schema changes?
    • Did any of the interface versions change?
    • Were permissions changed, added, or removed?
    • Are there new interface dependencies?
    • There are no breaking changes in this PR.
    • Check logging

@zakletskyi-epam zakletskyi-epam self-assigned this Feb 17, 2026
@zakletskyi-epam zakletskyi-epam marked this pull request as ready for review February 17, 2026 08:33
@sonarqubecloud
Copy link

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.

2 participants