src/Validation/JsonValidator.php
private function getSchemaPath(JsonSchema $annotation)
    {
        if (is_array($path = $this->locator->locate($annotation->filename))) {
            throw new \UnexpectedValueException('Multiple schemas found');
        }

        return $path;
    }
private function getSchemaPath(JsonSchema $annotation)
    {
        if (is_array($path = $this->locator->locate($annotation->filename))) {
            throw new \UnexpectedValueException('Multiple schemas found');
        }

        return $path;
    }
@param JsonSchema $annotation

@return string

@throws \InvalidArgumentException When the schema file is not found
@throws \UnexpectedValueException When multiple schema files
with the same name are found