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
In 0.11 the implementation of the ValidatorBuilder factory is an instance of YamlFileFactory, which implements the CacheableSchemaFactory. However in 0.12 the implementation is a PrecreatedSchemaFactory, which obviously doesn't implement the CacheableSchemaFactory.
To Reproduce
Steps to reproduce the behaviour:
It should happen with any basic implementation (fromYamlFile, fromJsonFile), as long as it uses the cache.
Expected behaviour
The cache should not fail.
Additional context
The League\OpenAPIValidation\PSR7\ValidatorBuilder class has a overrideCacheKey method that could be used to fix this problem.
Activity
osteel commentedon Dec 2, 2025
Hi, thanks for the detailed report. That
v0.12update to support URLs is the gift that keeps on giving 🤦♂️There has to be a way to make it all work, but I'm not sure when I'll have time to look into it. Are you happy to keep on using
v0.11in the meantime?P.S.: Nice to see that some people actually use the caching feature! Wasn't sure that was the case
mauricius commentedon Dec 2, 2025
Absolutely, don't worry about it. I was just randomly upgrading packages and I stumbled in this issue 😉
osteel commentedon Dec 2, 2025
Ok cool, I'll keep you posted!
osteel commentedon Dec 4, 2025
Should be fixed with #57 (
v0.14) – let me know if any issues!