swagger-parser icon indicating copy to clipboard operation
swagger-parser copied to clipboard

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

Open juliang22 opened this issue 3 years ago • 1 comments

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!

juliang22 avatar Jan 20 '23 19:01 juliang22

/assign me

I would like to work on it

aryasoni98 avatar Jun 12 '23 19:06 aryasoni98