-
Notifications
You must be signed in to change notification settings - Fork 85
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
Array of Object Response Changes Not Detected #21
Comments
I think this is the fix for the array-to-array comparison. It works for me as far as I can tell. In SpecificationDiff.java: Original:
Refactor to handle array:
|
@Sayi - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example, if in petstore_v2_1.json and petstore_v2_2.json you change lines ~723 and ~722 respectively from
"schema": { "$ref": "#/definitions/User" }
to
"schema": { "type" : "array", "items" : { "$ref" : "#/definitions/User" } }
it will no longer detect that there was a change, even though it previously was caught (GET /user/{username}) when it was only a single object being returned. This is pretty important if you only return a certain object type from an endpoint as an array.
The text was updated successfully, but these errors were encountered: