.
This commit is contained in:
parent
54e418acaf
commit
8db4d8c302
@ -3,12 +3,6 @@ all: build
|
||||
api.json:
|
||||
curl -o api.json https://src.opensuse.org/swagger.v1.json
|
||||
|
||||
obs.api.json:
|
||||
curl -o obs.api.yaml https://api.opensuse.org/apidocs/OBS-v2.10.50.yaml
|
||||
|
||||
client.gen.go:: obs.api.json
|
||||
go generate
|
||||
|
||||
gitea-generated/client/gitea_api_client.go:: api.json
|
||||
[ -d gitea-generated ] || mkdir gitea-generated
|
||||
podman run --rm -v $$(pwd):/api ghcr.io/go-swagger/go-swagger generate client -f /api/api.json -t /api/gitea-generated
|
||||
|
47545
bots-common/obs.api.yaml
47545
bots-common/obs.api.yaml
File diff suppressed because it is too large
Load Diff
@ -1,5 +0,0 @@
|
||||
package: obs
|
||||
output: obs/client.go
|
||||
generate:
|
||||
models: true
|
||||
client: true
|
@ -1,5 +0,0 @@
|
||||
package common
|
||||
|
||||
//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -config obs.cfg.yaml obs.api.yaml
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user