-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove test of other code generators * generate with with-flatten full * manual fix generated code
- Loading branch information
Showing
406 changed files
with
2,256 additions
and
140,148 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 |
---|---|---|
|
@@ -36,19 +36,9 @@ generate: clean ## Generate the API Go client and the JSON document for the UI | |
--spec $(SWAGGER_SPEC) \ | ||
--target go \ | ||
--default-scheme=https \ | ||
--with-flatten=minimal \ | ||
--with-flatten=full \ | ||
--skip-tag-packages | ||
|
||
validate: ## Check that the swagger spec is valid. | ||
go run github.com/go-swagger/go-swagger/cmd/[email protected] validate $(SWAGGER_SPEC) | ||
|
||
test: ## Generate with openapitools/openapi-generator-cli | ||
docker run --rm -v $(shell pwd):/local openapitools/openapi-generator-cli generate \ | ||
-i /local/swagger.json \ | ||
-g go \ | ||
-o /local/go2 \ | ||
--git-user-id=staffbase \ | ||
--git-repo-id=bitrise-api | ||
|
||
test2: | ||
go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest -package=examplepkg -generate=types,client,spec -o=go3/example-client.go ./openapi.yaml |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.