openapi

command module
v0.0.0-...-204e821 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2025 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Server

Go Swagger
https://github.com/go-swagger/go-swagger
Write swagger source
// swagger:meta

// swagger:route

// swagger:parameters

// swagger:model
Generate a spec from source
swagger generate spec -m -o spec/swagger.json \
    -c github.com/gunsluo/go-example/openapi/h \
    -c github.com/gunsluo/go-example/openapi/v

Client

Install Tools
brew install openapi-generator
Generate SDK
ory dev swagger sanitize ./spec/swagger.json

swagger validate ./spec/swagger.json

openapi-generator config-help -g go

ory dev openapi migrate \
    --health-path-tags metadata \
    spec/swagger.json spec/api.json

openapi-generator generate -i spec/api.json -g go -o client/api \
    --git-user-id gunsluo \
    --git-repo-id "go-example/openapi/client/api" \
    --git-host github.com \
    -t client/templates/go \
    -c client/go.yml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
client
api module
example module
h
Package handler Configurator
Package handler Configurator
v

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL