APIDevTools / swagger-parser

Swagger 2.0 and OpenAPI 3.0 parser/validator
https://apitools.dev/swagger-parser
MIT License
1.11k stars 155 forks source link

Definitions which hang the parser/resolver - infinite loop? #64

Open MikeRalphson opened 7 years ago

MikeRalphson commented 7 years ago

Seems to affect both the v3.4 and v4 branches.

Each seem to have quite deeply nested circular references (I used a topological sorting algorithm to check).

JamesMessinger commented 7 years ago

Thanks for letting me know. I'll try to reproduce the problem locally and look into the cause

bbqsrc commented 7 years ago

I encountered this today, and I have made a minimal reproduction case here: https://github.com/BigstickCarpet/json-schema-ref-parser/issues/36

JamesMGreene commented 7 years ago

Otherwise, maybe try settings the option $refs.circular to false....?

https://github.com/BigstickCarpet/swagger-parser/blob/master/docs/options.md#options