-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package cti | ||
|
||
// To update openapi.yaml: | ||
// curl https://crowdsecurity.github.io/cti-api/v2/swagger.yaml > ./pkg/cti/openapi.yaml | ||
|
||
//go:generate go run -mod=mod github.com/deepmap/oapi-codegen/v2/cmd/[email protected] -package=cti -generate client -o ./client.go ./openapi.yaml | ||
//go:generate go run -mod=mod github.com/deepmap/oapi-codegen/v2/cmd/[email protected] -package=cti -generate types -o ./types.go ./openapi.yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package models | ||
|
||
//go:generate go run -mod=mod github.com/go-swagger/go-swagger/cmd/[email protected] generate model --spec=./localapi_swagger.yaml --target=../ | ||
//go:generate go run -mod=mod github.com/go-swagger/go-swagger/cmd/[email protected] generate model --spec=./localapi_swagger.yaml --quiet --target=../ | ||
|