Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 529 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 529 Bytes

oneapi

oneapi is a tool to generate OpenAPI 3.1 specification from Go source code.

Features

API generation:

  • Generate OpenAPI 3.1 schemas from Go structs
  • [] Generate OpenAPI 3.1 paths from Go functions
  • [] Generate Go server code from OpenAPI 3.1

Database generation:

  • [] Generate SQL schema from Go structs
  • [] Generate Go database layer from Go structs

Installation

go install -v github.com/danhtran94/oneapi/cmd/oneapi

# example tests
oneapi -path "tests/models/*.go" > tests/openapi.yaml