https://github.com/fs-frost/openapi2go
CLI tool to generate Go code from OpenAPI specifications.
https://github.com/fs-frost/openapi2go
codegen openapi
Last synced: 3 months ago
JSON representation
CLI tool to generate Go code from OpenAPI specifications.
- Host: GitHub
- URL: https://github.com/fs-frost/openapi2go
- Owner: FS-Frost
- Created: 2024-12-26T18:21:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-07T12:27:59.000Z (about 1 year ago)
- Last Synced: 2025-02-19T02:49:36.126Z (12 months ago)
- Topics: codegen, openapi
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# openapi2go
CLI tool to generate Go code from OpenAPI specifications.
- For servers:
- Structs with JSON tags
- Functions using [Gin](https://github.com/gin-gonic/gin) for HTTP interactions
- For clients:
- Structs with JSON tags
# Install
```sh
go install github.com/FS-Frost/openapi2go@latest
```
# Usage
```sh
openapi2go spec1.yml [specN.yml] outDir
```