-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow duplicate link titles (#46)
* Disallow duplicate link titles This change came about as a result of the realization that we are dropping numerous client API calls as a part of client generation, both here in schematic and in the ruby version of this tool, Heroics. While a number of PRs have been initiated to fix the underlying heroku platform api schema itself, these two tools should raise an error and should not proceed to generate an incomplete client in the event of duplicate link titles. During the discussion here (https://github.com/heroku/api/pull/7787#issuecomment-299169974) we are attempting to do the following: - fix all of the (sub)schemas of the platform API. - update schematic and heroics to throw an error when duplicates exist. - regenerate the Golang and ruby clients, incrementing the major version in order to reflect the breaking changes (title changes -> method name changes) that will be introduced. * Add tests; lowercase title for compare - lowercase the title to ensure good comparison - added test cases - fixed an issue raise by tests * Dont’t panic, just return early w/error
- Loading branch information
1 parent
6925dfc
commit 5baa87f
Showing
5 changed files
with
78 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Blake Gentry <[email protected]> | ||
Bo Jeans <[email protected]> | ||
Timothée Peignier <[email protected]> | ||
Chris Johnson <[email protected]> |
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
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