BeanOutputParser improvements #238
jonas464646
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
When using the BeanOutputParser to parse dates or numbers, jackson fails fast when the document/input text isn't in the expected format. For example:
If you have a bean with for example 100 properties, the request fails completely when one property can't be casted.
Could the default be improved to catch the property exception and set only the failing property to null so that the other working properties could be used? To not hide the internal exception a log warning could be added instead.
To improve/customize the parsing, is there already an recommended approach?
Beta Was this translation helpful? Give feedback.
All reactions