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
I receive the error hypothesis_jsonschema._canonicalise.HypothesisRefResolutionError: Could not resolve recursive references in schema={...}.
Am I using the library properly ? if so, is there some workaround to avoid this infinite recursion (even if it restrains the range of objects that could be generated by hypothesis) ?
The text was updated successfully, but these errors were encountered:
Hi @sdementen - unfortunately recursive references aren't supported yet - fixing that is #33, our oldest open issue! In the meantime, https://schemathesis.readthedocs.io might be a better tool for what you're trying to do.
There isn't really a workaround at the moment either, but I think it might be possible to add one... I'll post more on the older issue; closing this one just to de-duplicate.
Ok, i will watch the other issue.
For schemathesis, I am not trying to generate api calls matching a swagger (to test the API represented by the swagger) but really generating compliant swagger files (as my lib is about manipulating swagger files).
hello, I would like to use hypothesis-jsonschema to test a library to manage swagger specifications (https://github.com/sdementen/oasapi).
I am using the jsonschema for the swagger https://github.com/sdementen/oasapi/blob/master/src/oasapi/schemas/schema_swagger.json.
When I try to run the following test
I receive the error
hypothesis_jsonschema._canonicalise.HypothesisRefResolutionError: Could not resolve recursive references in schema={...}
.Am I using the library properly ? if so, is there some workaround to avoid this infinite recursion (even if it restrains the range of objects that could be generated by hypothesis) ?
The text was updated successfully, but these errors were encountered: