Discover Packages
github.com/aarondl/oa3
command
module
Version:
v0.0.46
Opens a new window with list of versions in this module.
Published: Sep 25, 2022
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
oa3
oa3 generates HTTP endpoint stubs and supporting models from OpenAPI 3 specs.
Requirements
Getting Started using oa3
go install github.com/aarondl/oa3@latest
./oa3 <your_favorite_generator>
Getting Started developing on oa3
go build
go test
./oa3 --help
Examples
Coming Soon™. Currently as there are no examples you can look at the testdata
directories of your favorite language where generally you will find a test
openapi yaml spec as well as the generated files for that yaml.
Parameters
This is an exhaustive list of things that are supported as a paremeter by each
generator.
Go Server
Name
Values
Description
package
oa3gen (default)
Override the package name for the generated files
timetype
time (default)
{type: string, format: date/datetime/time}
uses time.Time
chrono
{type: string, format: date/datetime/time}
uses chrono.X
decimaltype
string (default)
{type: string, format: decimal}
changes nothing
decimaltype
shopspring
{type: string, format: decimal}
uses shopspring decimal
uuidtype
string (default)
{type: string, format: uuid}
uses string
uuidtype
google
{type: string, format: uuid}
uses google's uuid library
Go Client
Name
Values
Description
package
oa3gen (default)
Override the package name for the generated files
timetype
time (default)
{type: string, format: date/datetime/time}
uses time.Time
chrono
{type: string, format: date/datetime/time}
uses chrono.X
decimaltype
string (default)
{type: string, format: decimal}
changes nothing
decimaltype
shopspring
{type: string, format: decimal}
uses shopspring decimal
uuidtype
string (default)
{type: string, format: uuid}
uses string
uuidtype
google
{type: string, format: uuid}
uses google's uuid library
Typescript Client
Currently no parameters are supported.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Package generator makes a small abstraction for main => generators to work with.
Package generator makes a small abstraction for main => generators to work with.
Package support is full of helper functions and types for the code generator
Package support is full of helper functions and types for the code generator
Package typescript generates typescript clients for the browser
Package typescript generates typescript clients for the browser
Click to show internal directories.
Click to hide internal directories.