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
Hi,
In my schema I have paths and schemas in their own files under folder ./paths and ./schemas.
After update to 1.3.2 I started getting this exception jsonschema.exceptions.RefResolutionError: <urlopen error [Errno 2] No such file or directory: '/home/sb/work/python/sraps/docs/application/openapi.yml'>
actual path is /home/sb/work/python/sraps/docs/application/openapi/openapi.yml
The problem here is with ../. It looks for "../openapi.yml#/components/schemas/User" from base directory (/home/sb/work/python/sraps/docs/application/openapi/) and not from ./paths (/home/sb/work/python/sraps/docs/application/openapi/paths/)
The text was updated successfully, but these errors were encountered:
Thank you for reporting this. The bug is connected with the recent changes in response_schema_conformance check - now it uses a not-resolved schema. I will investigate
Ok, I added one more bug there - _get_response_schema now accepts not resolved schema, and it is not resolved inside. After adding resolving, it fails with an error :/ I will work on a fix
Hi,
In my schema I have
paths
andschemas
in their own files under folder ./paths and ./schemas.After update to 1.3.2 I started getting this exception
jsonschema.exceptions.RefResolutionError: <urlopen error [Errno 2] No such file or directory: '/home/sb/work/python/sraps/docs/application/openapi.yml'>
actual path is
/home/sb/work/python/sraps/docs/application/openapi/openapi.yml
example of
paths
fileThe problem here is with
../
. It looks for"../openapi.yml#/components/schemas/User"
from base directory (/home/sb/work/python/sraps/docs/application/openapi/
) and not from ./paths (/home/sb/work/python/sraps/docs/application/openapi/paths/
)The text was updated successfully, but these errors were encountered: