Closed danieleggert closed 3 months ago
Skip BODYSTRUCTURE data when literal size limit is exceeded.
The original fix in #757 wasn’t able to handle ExceededLiteralSizeLimitError.
ExceededLiteralSizeLimitError
Use do-catch instead of parseOneOf to fall back to parseInvalidBody if parsing fails.
do
catch
parseOneOf
parseInvalidBody
Added test cases.
We can now skip BODYSTRUCTURE which contain excessively large literals.
BODYSTRUCTURE
Late to the party but LGTM
Skip BODYSTRUCTURE data when literal size limit is exceeded.
Motivation:
The original fix in #757 wasn’t able to handle
ExceededLiteralSizeLimitError
.Modifications:
Use
do
-catch
instead ofparseOneOf
to fall back toparseInvalidBody
if parsing fails.Added test cases.
Result:
We can now skip
BODYSTRUCTURE
which contain excessively large literals.