You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
i have a routedRequestValidator for a yaml file and a prepared body to check against the specs before actually making the request.
$validator = (new ValidatorBuilder())->fromYamlFile($specFile)->getRoutedRequestValidator();
$validator->validate(new OperationAddress('/create/thing', 'post'), $request);
Sure there might be validation errors because the body does not match the schema. Now the SchemaMismatch Exception is raised within the SchemaValidator at the first occurence of a mismatched field. Is there a way to supply my own error handler so i can get all ValidationFailed-Exceptions at once?
Right now i have to check the body - resolve the issue, check again - resolve the ...
Any help would be appreciated!
Kind regards
Alex
The text was updated successfully, but these errors were encountered:
Hi all,
i have a routedRequestValidator for a yaml file and a prepared body to check against the specs before actually making the request.
Sure there might be validation errors because the body does not match the schema. Now the
SchemaMismatch
Exception is raised within theSchemaValidator
at the first occurence of a mismatched field. Is there a way to supply my own error handler so i can get all ValidationFailed-Exceptions at once?Right now i have to check the body - resolve the issue, check again - resolve the ...
Any help would be appreciated!
Kind regards
Alex
The text was updated successfully, but these errors were encountered: