Generate FiveWest API Client
Using OpenAPI specification file: https://api.fivewest.co.za/unified-openapi.json
This config in json is not compatible with oapi-codegen, and returned error:
error loading swagger spec in unified-openapi.json
: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal number into field Schema.exclusiveMinimum of type bool exit status 1
generate.go:3: running "go": exit status 1
Generate config in YAML:
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:latest-release generate \
-i /local/unified-openapi.json \
-g go \
-o /local/openapi-generator-client
go mod init bitbucket.org/g12pb/fivewestapi
go get github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
go generate ./client
go mod tidy