Skip to content

Conversation

@grevian
Copy link
Owner

@grevian grevian commented Mar 18, 2023

Remove the generator boilerplate code and provide an implementation of the API within our service that will compile, but doesn't necessary serve requests

See #4 for the initial generation of the server stubs and boilerplate
See #6 for the implementation of some of the functionality of the spec within our service

# 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants