MODAUD-271 Fix cancellation reason deserialization with consortium source field#241
Open
zakletskyi-epam wants to merge 3 commits intomasterfrom
Open
MODAUD-271 Fix cancellation reason deserialization with consortium source field#241zakletskyi-epam wants to merge 3 commits intomasterfrom
zakletskyi-epam wants to merge 3 commits intomasterfrom
Conversation
…lude source field
…d restrict additional properties
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



MODAUD-271
Purpose
Fix deserialization error when processing cancellation reasons from Consortium Manager that include a
"source"field.Approach
Modified the
cancellation_reason.jsonschema to set"additionalProperties": trueinstead offalse.This change causes jsonschema2pojo to generate the
CancellationReasonJava class with@JsonAnyGetterand@JsonAnySetterannotations, 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.