-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect duplicate key values when diffing keyed arrays (#3320)
The Azure spec has "keyed arrays" which are essentially sets. This PR resolves #3311 which showed that some keyed arrays actually have duplicate key values, which defeats the purpose and is invalid (filed Azure/azure-rest-api-specs#29288 upstream). This PR adds detection of this degenerate case, upon which we abort the keyed array diff and continue with a regular array diff. Tested locally with the exact repro of #3311.
- Loading branch information
Showing
2 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters