This PR adds support for throwing an UserError in case validation for corresponding OpenAPI to converted fails. Till now we were providing result with reason property. But to make sure that error reporting is uniform across various modules and correct, we're changing the behavior to make sure UserErrors are reported as errors here.
This means some of existing test cases also needed update.
Overview
This PR adds support for throwing an UserError in case validation for corresponding OpenAPI to converted fails. Till now we were providing result with reason property. But to make sure that error reporting is uniform across various modules and correct, we're changing the behavior to make sure UserErrors are reported as errors here.
This means some of existing test cases also needed update.