-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] false invalid schema #2073
Comments
somwhow I did not see additional warnings previously: .venv\Lib\site-packages\schemathesis\specs\openapi\references.py:49 .venv\Lib\site-packages\schemathesis\specs\openapi\security.py:6 .venv\Lib\site-packages\schemathesis\specs\openapi\schemas.py:84 |
additional info: |
Hi! Thank you for reporting! Can you please, share your schema? It would help me a lot Re: warnings - that's something I plan to address via #1755 |
As a side note, there are cases when such failures come directly from YAML quirks, and some online editors parse inputs differently, in a more permissive way. I don't remember the exact issue in the issue tracker but will link it later |
Could it be this one? #610 (comment) |
Hi @Stranger6667 , I anonymized my files: the main file contains references to itself, and to the common parts, the common parts file has references to itself. I attach the files, it is a tar.gz BR, |
Thanks for sharing! I found two issues:
I am going to fix these soon |
Ref: #2073 Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
Ref: #2073 Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
Checklist
Describe the bug
Hi,
I have an openapi 3.0.3 document file, which contains references for parts of another file (it contains common stuff)
for example:
$ref: './common-components.yaml#/components/responses/UnauthorizedError'
validators that I found say it is valid, also swagger UI is created well from the two files (the parts from common file are included)
But schemathesis says it is invalid:
when
my_stuff = schemathesis.from_file("./my-file.yaml")
is called, the following error is given:
To Reproduce
will anonymize, and send example if this is not enough
Environment
BR,
George
The text was updated successfully, but these errors were encountered: