-
Notifications
You must be signed in to change notification settings - Fork 137
feat(ci): validate OpenAPI spec by generating and building Go client #2078
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
63cf928
feat(ci): add action that generate and build Go client from OpenAPI spec
bliuchak 0b1cff7
fix: apply proper formatting
bliuchak 39e55b1
fix: validate-go-codegen job should be independent
bliuchak e657bac
fix: remove commented code
bliuchak d933782
test: validate that Go client compilation fails on invalid OpenAPI spec
bliuchak 8fe2c2b
Revert "test: validate that Go client compilation fails on invalid Op…
bliuchak 8295d54
fix: remove extra npm ci
bliuchak 0ec46dd
fix: disable go cache
bliuchak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| module apify-codegen-test | ||
|
|
||
| go 1.25 | ||
|
|
||
| tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen | ||
|
|
||
| require github.com/oapi-codegen/runtime v1.1.2 | ||
|
|
||
| require ( | ||
| github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect | ||
| github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect | ||
| github.com/getkin/kin-openapi v0.133.0 // indirect | ||
| github.com/go-openapi/jsonpointer v0.21.0 // indirect | ||
| github.com/go-openapi/swag v0.23.0 // indirect | ||
| github.com/google/uuid v1.5.0 // indirect | ||
| github.com/josharian/intern v1.0.0 // indirect | ||
| github.com/mailru/easyjson v0.7.7 // indirect | ||
| github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect | ||
| github.com/oapi-codegen/oapi-codegen/v2 v2.5.1 // indirect | ||
| github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037 // indirect | ||
| github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90 // indirect | ||
| github.com/perimeterx/marshmallow v1.1.5 // indirect | ||
| github.com/speakeasy-api/jsonpath v0.6.0 // indirect | ||
| github.com/speakeasy-api/openapi-overlay v0.10.2 // indirect | ||
| github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect | ||
| github.com/woodsbury/decimal128 v1.3.0 // indirect | ||
| golang.org/x/mod v0.21.0 // indirect | ||
| golang.org/x/sync v0.9.0 // indirect | ||
| golang.org/x/text v0.20.0 // indirect | ||
| golang.org/x/tools v0.25.1 // indirect | ||
| gopkg.in/yaml.v2 v2.4.0 // indirect | ||
| gopkg.in/yaml.v3 v3.0.1 // indirect | ||
| ) |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| package: apify | ||
| output: generated/client.gen.go | ||
| generate: | ||
| models: true | ||
| client: true | ||
| embedded-spec: false | ||
| output-options: | ||
| skip-prune: true |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.