private function getMethod($method, $path)
{
$resource = $this->getResource($path);
try {
return $resource->getMethod($method);
} catch (Exception $exception) {
throw new ValidatorSchemaException(sprintf('Schema for %s %s was not found in API definition', strtoupper($method), $path));
}
}