Skip to content

Commit

Permalink
rollback and fixes (#91)
Browse files Browse the repository at this point in the history
* remove test of other code generators

* generate with with-flatten full

* manual fix generated code
  • Loading branch information
cstaud authored Dec 6, 2023
1 parent 6742292 commit f18e939
Show file tree
Hide file tree
Showing 406 changed files with 2,256 additions and 140,148 deletions.
12 changes: 1 addition & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
106 changes: 3 additions & 103 deletions go/client/operations/app_roles_query_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions go/client/operations/app_roles_update_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f18e939

Please sign in to comment.