Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Jackson Databind's 'MissingNode' null object better #976

Closed
adityachatterjee42 opened this issue Feb 23, 2024 · 2 comments
Closed

Comments

@adityachatterjee42
Copy link

adityachatterjee42 commented Feb 23, 2024

Jackson Databind uses com.fasterxml.jackson.databind.node.MissingNode as a 'null object'

Supplying the MissingNode singleton to JsonSchema.validate(...) leads to the following validation error message:
$: unknown found, {} expected

I suggest we explicitly handle MissingNode and return a more descriptive error message, or fail in a different way.

@adityachatterjee42 adityachatterjee42 changed the title Handle Jackson Databind's 'MissingNode' null object Handle Jackson Databind's 'MissingNode' null object better Feb 23, 2024
@justin-tay
Copy link
Contributor

Can you provide the example and input data used? Are you sure it is MissingNode and not NullNode? I don't really see any issue with the message.

@stevehu
Copy link
Contributor

stevehu commented May 30, 2024

Closing the issue as there is no action.

@stevehu stevehu closed this as completed May 30, 2024
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

No branches or pull requests

3 participants