'How to fetch all failed fields information while validating AVRO schema with payload

I am not able to fetch all the failed field information. The method just returns the first failure attribute in case of AVRO schema, my requirement is to get all failed attributes information after schema validation with payload. Schema is generic so i can't rely on POJO class. Suggestions required if someone has faced same issue.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source