Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitbucket.org/g12pb/fivewest-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket.org/g12pb/fivewest-api

  • v0.2.1
  • Source
  • Go
  • Socket score

Version published
Created
Source

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

# this produces ./openapi-generator-client/api/openapi.yaml
# edit file above, remove parameter type 'Id_1'
# use result as ./client/api.yaml
# only required for first time
go mod init bitbucket.org/g12pb/fivewestapi
go get github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
# generate client
go generate ./client
go mod tidy

FAQs

Package last updated on 26 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc