Skip to content

Commit

Permalink
refactor: use latest oapi-codegen config
Browse files Browse the repository at this point in the history
  • Loading branch information
borgoat committed Nov 21, 2022
1 parent f625a9b commit be85669
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions api/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package: api
generate:
models: true
embedded-spec: true
echo-server: true
client: true
output: api/farmfa.gen.go
output-options:
skip-prune: true
2 changes: 1 addition & 1 deletion generate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

//go:generate go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest -o api/farmfa.gen.go -generate types,client,server,spec -package api api/farmfa.yaml
//go:generate go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest -config api/config.yaml api/farmfa.yaml

0 comments on commit be85669

Please sign in to comment.