oss.yml
must be periodically synced with latest changes and types and client must be re-generated
to maintain full compatibility with the latest InfluxDB release
git clone git@github.com:bonitoo-io/oapi-codegen.git
cd oapi-codegen
git checkout feat/template_helpers
go install ./cmd/oapi-codegen/oapi-codegen.go
wget https://raw.githubusercontent.com/influxdata/openapi/master/contracts/oss.yml
cd domain
oapi-codegen -generate types -exclude-tags Checks -o types.gen.go -package domain -templates .\templates oss.yml
oapi-codegen -generate client -exclude-tags Checks -o client.gen.go -package domain -templates .\templates oss.yml