Btp SaaS-Provisioning Service API Go
Prerequisites
Install openapi-generator-cli (using mac)
brew install openapi-generator
for other OS see official guide
How to regenerate
openapi-generator generate -i swagger-patched.json -g go -o pkg/ --additional-properties=generateInterfaces=true
go mod tidy -v
Apply patches
Sometimes api specs need to be patched prior to generating code out of them.
For that the widely accepted json-patch standard can be used. To not introduce any more dependencies into the project
we do not include an opinionated json-patch library but rather leave it up to the contributor to choose one.
You can find a list here: https://jsonpatch.com