APIDevTools / swagger-parser

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

Files over 3mb cause com.fasterxml.jackson.dataformat.yaml.JacksonYAMLParseException #238

Open juliang22 opened 1 year ago

juliang22 commented 1 year ago

I'm attempting to parse Stripe's OpenAPI spec, but the file is ~3.78MB which is over the limit that the Jackson allows by default. There is a fix to this issue, but being that swagger-parser does allow access to the creation of the Jackson parsing objects, I can't implement the fix.

It would be great if swagger-parser implemented this by default or allowed the user to configure it with ParseOptions. If I try using the .json spec file, I run out of java heap space.

Would love some guidance if anyone has any ideas!

aryasoni98 commented 1 year ago

/assign me

I would like to work on it