swagger-parser
swagger-parser copied to clipboard
Definitions which hang the parser/resolver - infinite loop?
Seems to affect both the v3.4 and v4 branches.
- https://api.swaggerhub.com/apis/rftrein/site-express_s_mark_api/v1
- https://api.swaggerhub.com/apis/rthiney/test/1.0.0
- https://api.swaggerhub.com/apis/vkszn/smart-web_web_api/v1
Each seem to have quite deeply nested circular references (I used a topological sorting algorithm to check).
Thanks for letting me know. I'll try to reproduce the problem locally and look into the cause
I encountered this today, and I have made a minimal reproduction case here: https://github.com/BigstickCarpet/json-schema-ref-parser/issues/36
Otherwise, maybe try settings the option $refs.circular to false....?
https://github.com/BigstickCarpet/swagger-parser/blob/master/docs/options.md#options