Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# See https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github for details
api/** linguist-generated=true
api/** linguist-generated=true
go.sum linguist-generated=true
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.PHONY: generate

generate:
docker run --rm -v ${CURDIR}:/local openapitools/openapi-generator-cli generate -i /local/petstore-openapi.yaml -g go-server --additional-properties=addResponseHeaders=true,router=chi -o /local/api
# The generated demo service and module configuration confuse the compiler, and we're not using them, so remove them
del api\main.go api\go.mod
docker run --rm -v ${CURDIR}:/local openapitools/openapi-generator-cli generate -i /local/petstore-openapi.yaml -g go-server --additional-properties=addResponseHeaders=true,outputAsLibrary=true,onlyInterfaces=true,router=chi -o /local/api

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the provided service boilerplate in future generations, and provide the service stubs as a package instead


7 changes: 1 addition & 6 deletions api/.openapi-generator/FILES

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

2 changes: 1 addition & 1 deletion api/README.md

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

141 changes: 0 additions & 141 deletions api/go/api_pet_service.go

This file was deleted.

84 changes: 0 additions & 84 deletions api/go/api_store_service.go

This file was deleted.

120 changes: 0 additions & 120 deletions api/go/api_user_service.go

This file was deleted.

Loading