(new League\OpenAPIValidation\PSR7\ValidatorBuilder)
->fromYaml($yaml)
->getResponseValidator();
Response schema references "City" schema, which itself references "Named" schema, which is perfectly valid. However, the library throws the following exception:
cebe\openapi\exceptions\UnresolvableReferenceException : Cyclic reference detected, setReferenceContext() called on a Reference Object.
Consider this simple YAML:
Response schema references "City" schema, which itself references "Named" schema, which is perfectly valid. However, the library throws the following exception: