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

Annotation to ignore unknown fields in YAML #96

Closed
expobrain opened this issue Jul 23, 2018 · 3 comments
Closed

Annotation to ignore unknown fields in YAML #96

expobrain opened this issue Jul 23, 2018 · 3 comments

Comments

@expobrain
Copy link

I would be nice to have an annotation to ignore unknown fields when deserialising YAML structures like JsonIgnoreProperties(ignoreUnknown = true)

@cowtowncoder
Copy link
Member

All regular annotations work with YAML, same as with json. So I am not 100% sure what the request here is.
Perhaps you are having issues with usage?

@expobrain
Copy link
Author

Oh, you are right, JsonIgnoreProperties works fine with YAML data as well, I got mislead by the Json* prefix.

Thank you and sorry for the stupid question

@cowtowncoder
Copy link
Member

@expobrain You are welcome and no problem at all. "json" prefix is historical leftover from time Jackson started as (just) json library, and that can be misleading.
Just happy your problem is solved.

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

2 participants