-
Notifications
You must be signed in to change notification settings - Fork 166
Fix: Crashes when parsing diff for very large specs #388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
package org.openapitools.openapidiff.core.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import io.swagger.v3.oas.models.OpenAPI; | ||
import java.util.List; | ||
import java.util.Objects; | ||
|
@@ -8,8 +9,8 @@ | |
import org.openapitools.openapidiff.core.utils.EndpointUtils; | ||
|
||
public class ChangedOpenApi implements ComposedChanged { | ||
private OpenAPI oldSpecOpenApi; | ||
private OpenAPI newSpecOpenApi; | ||
@JsonIgnore private OpenAPI oldSpecOpenApi; | ||
@JsonIgnore private OpenAPI newSpecOpenApi; | ||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would change the output of the JSON renderer and remove the copy of the old and new OpenAPI specifications from the document. Was this intentional? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm fine with removing/ignoring these fields since none of the other output renderers is using them, but I want to make sure this was intentional on your end. 😉 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes it was. IMO that information is redundant as they are the inputs to the tool. Plus in the case of large files it makes the output unnecessarily large. |
||
private List<Endpoint> newEndpoints; | ||
private List<Endpoint> missingEndpoints; | ||
private List<ChangedOperation> changedOperations; | ||
|
Uh oh!
There was an error while loading. Please reload this page.