Skip to content

Commit

Permalink
Re-generate capi models (#3260)
Browse files Browse the repository at this point in the history
* add centralapi_swagger.yaml

* remove nullable to avoid generate error

* re-generate pkg/modelscapi

* update go-swagger to 0.31.0
  • Loading branch information
mmetc authored Oct 2, 2024
1 parent 27451a5 commit 56c9c7a
Show file tree
Hide file tree
Showing 18 changed files with 954 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ crowdsec: ## Build crowdsec
generate: ## Generate code for the database and APIs
$(GO) generate ./pkg/database/ent
$(GO) generate ./pkg/models
$(GO) generate ./pkg/modelscapi

.PHONY: testclean
testclean: bats-clean ## Remove test artifacts
Expand Down
2 changes: 1 addition & 1 deletion pkg/models/generate.go
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/swagger@v0.30.5 generate model --spec=./localapi_swagger.yaml --target=../
//go:generate go run -mod=mod github.com/go-swagger/go-swagger/cmd/swagger@v0.31.0 generate model --spec=./localapi_swagger.yaml --target=../

5 changes: 5 additions & 0 deletions pkg/modelscapi/add_signals_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions pkg/modelscapi/add_signals_request_item.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/modelscapi/add_signals_request_item_decisions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/modelscapi/add_signals_request_item_decisions_item.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 56c9c7a

Please sign in to comment.