Issue:
When calculating diffs between two large Swagger specs(~123k loc) the tool will crash when writing the output to a JSON file. As shown in the screenshot this is due to the tool, first converting the ChangedOpenAPI object to a JSON string and then writing this string to a file. Because this string is massive it violates the max UTF16 string size.
Solution:
Write the diff directly to a the output file and also omit the oldSpecOpenApi and newSpecOpenApi when writing the output as an optimization. These fields are irrelevant for the diff output.
Issue: When calculating diffs between two large Swagger specs(~123k loc) the tool will crash when writing the output to a JSON file. As shown in the screenshot this is due to the tool, first converting the
ChangedOpenAPI
object to a JSON string and then writing this string to a file. Because this string is massive it violates the max UTF16 string size.Solution: Write the diff directly to a the output file and also omit the
oldSpecOpenApi
andnewSpecOpenApi
when writing the output as an optimization. These fields are irrelevant for the diff output.