-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: generation of openapi spec when there are no changes (#1304)
* fix: generation of openapi spec when there are no changes Using reflect.Equal does not appear to work, there must be differences between how the spec is decoded from a file, and generated from types. This commit goes back to comparing the encoded version of the spec. That works better, but requires that we don't append servers, otherwise the old spec will always have different servers. All of the other fields we set are from writeOpenAPISpec replace any existing values, so it seems appropriate to do the same for Servers. * fix(openapi): replace date with product version This allows us to remove the comparison logic and simply re-generate the spec file every time. Co-authored-by: Michael Yang <michael.yang@infrahq.com>
- Loading branch information
Showing
5 changed files
with
23 additions
and
45 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
package internal | ||
|
||
var ( | ||
Branch = "main" | ||
Version = "0.0.0-development" | ||
Commit = "" | ||
Date = "" | ||
Branch = "main" | ||
// {x-release-please-start-version} | ||
Version = "0.6.1" | ||
// {x-release-please-end} | ||
Commit = "" | ||
Date = "" | ||
) |