You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The jersey2 library fails deserialization when the input data contains additional (undeclared) properties. For example, suppose the input data is the following JSON document:
The schema explicitly declares Name and CreateTime but not UserUniqueIdentifier:
When the jersey2 library attempts to deserialize the payload, an error occurs:
INFO: Input data does not match schema 'XYZ'
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
Unrecognized field "UserUniqueIdentifier" (class XYZ),
not marked as ignorable (31 known properties: ""CreateTime", "Name", ...])
at [Source: UNKNOWN; line: -1, column: -1]
(through reference chain: XYZ["Results"]->java.util.ArrayList[0]->XYZ["UserUniqueIdentifier"])
Uh oh!
There was an error while loading. Please reload this page.
Bug Report Checklist
Description
The jersey2 library fails deserialization when the input data contains additional (undeclared) properties. For example, suppose the input data is the following JSON document:
The schema explicitly declares
Name
andCreateTime
but notUserUniqueIdentifier
:When the jersey2 library attempts to deserialize the payload, an error occurs:
openapi-generator version
master June 12th
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: