2023-10-01から1ヶ月間の記事一覧

github.com/swaggest/openapi-goを使ってOpenAPIを生成する

Go

github.com/swaggest/openapi-goを使うとGoのコードからOpenAPIの定義(json/yaml)を生成できる。 pkg.go.dev 例: package main import ( "encoding/json" "fmt" "log" openapi "github.com/swaggest/openapi-go" "github.com/swaggest/openapi-go/openapi3" …