I am trying to process a huge number of star array responses from one API, it can contain for example 4K of objects, and I am using Jackson ObjectMapper to map the response to the List of my Objects. Here is a simplified example of my class:
public class MyObject {
private Long price;
}
Because in odoo you work with just objects is theoretically possible to put in the field which should contain just numbers a String. I would like to handle cases when for example one response will be incorrect but the other will be sent correctly (5,4,1,"not number",..). In this case, I would like to just log the error for the user and process all the other responses. I was wondering if there is some setting for the ObjectMapper or if you don't have others ideas on how to deal with this.
thx for your advice.