Polymorphic Pattern Lab Validator Error

In polymorphic pattern lab, whenever I tried to get the validation I am having the following error and couldn’t understand why

Please check this link

Lab: Apply the Polymorphic Pattern - Validator giving error

1 Like

Hi @Aytac_Guley

The validator does not handle that specific error condition in terms of parsing the JSON. If you try to enclose your solution in an array, it will help. You should also have multiple objects in the array as recommended in the lab.

This is essentially the guidance as provided by the link shared by @Ramachandra_37567 (thanks Ramachandra!).

Good luck and let us know if that helps resolve your issue.

1 Like

Thank you very much. The problem solved.

Thank you very much

Thanks for the update @Aytac_Guley and good luck with the rest of the course!