-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Getters needed for ignored properties #476
Comments
|
I really don't know, if this is specific to CSV. So I opened the issue here. Feel free to move it to a better place. |
I'm using version 2.17.0 for all jackson dependencies. |
Just updated to version 2.17.1: same behavior. |
Did it ever work? like in other version? You may try asking over at Stackoverflow (or similar) first or inquire over at jackson-dataformats-text repo. |
I didn't see this working before. I started a discussion in jackson-dataformats-text. |
Seems related to FasterXML/jackson-dataformat-csv#82. Has there been any new enhancement to better support such use case since then? (Credit: https://stackoverflow.com/a/56067713) |
It definitely looks like CSV specific; I will transfer. Ok so... in general with However. For generating |
Thanks for pointing this out. Header lines are usually not usable in my case, because the CSV files are delivered from external sources. Manually building the |
Contributions are welcome also! 😆 |
Also: ideas of how this could work: as things are, I am not sure how this could be made to work. But I have to say I am also surprised by the exception as that would suggest decoder did actually know about the property mapping from column. Test needs some tweaks to be used here (need to get rid of parameter module), but that should be doable. So the first thing we could do is add a failing test based on code included here. And yes, PRs are welcome (even just for failing test)! |
I added a second example to my issue description where I put the |
I'm wondering that I have to write getters for ignored properties. Here's an working example:
If you delete the getter
getIgnored()
, the following exception will be thrown:Is this expected behavior? Is there something I can do to omit writing these getters?
What's also interesting: You got a different exception when the ignored column is the last:
If you now delete the getter
getIgnored()
, the following exception will be thrown:Jackson-Version: 2.17.1
The text was updated successfully, but these errors were encountered: