diff --git a/src/Reader.php b/src/Reader.php index e4b52b8..99ee5c3 100644 --- a/src/Reader.php +++ b/src/Reader.php @@ -10,6 +10,7 @@ use cebe\openapi\exceptions\IOException; use cebe\openapi\exceptions\TypeErrorException; use cebe\openapi\exceptions\UnresolvableReferenceException; +use cebe\openapi\json\InvalidJsonPointerSyntaxException; use cebe\openapi\json\JsonPointer; use cebe\openapi\spec\OpenApi; use Symfony\Component\Yaml\Yaml; @@ -78,6 +79,7 @@ public static function readFromYaml(string $yaml, string $baseType = OpenApi::cl * @throws TypeErrorException in case invalid spec data is supplied. * @throws UnresolvableReferenceException in case references could not be resolved. * @throws IOException when the file is not readable. + * @throws InvalidJsonPointerSyntaxException in case an invalid JSON pointer string is passed to the spec references. */ public static function readFromJsonFile(string $fileName, string $baseType = OpenApi::class, $resolveReferences = true): SpecObjectInterface {