fix: use correct path for swagger sdk
@@ -93,13 +93,13 @@ gen: mocks sqlbin sdk
# Generates the SDKs
.PHONY: sdk
sdk:
- $$(go env GOPATH)/bin/swagger generate spec -m -o ./docs/api.swagger.json -x internal/httpclient,gopkg.in/square/go-jose.v2
- $$(go env GOPATH)/bin/swagutil sanitize ./docs/api.swagger.json
- $$(go env GOPATH)/bin/swagger flatten --with-flatten=remove-unused -o ./docs/api.swagger.json ./docs/api.swagger.json
- $$(go env GOPATH)/bin/swagger validate ./docs/api.swagger.json
+ $$(go env GOPATH)/bin/swagger generate spec -m -o ./.schema/api.swagger.json -x internal/httpclient,gopkg.in/square/go-jose.v2
+ $$(go env GOPATH)/bin/swagutil sanitize ./.schema/api.swagger.json
+ $$(go env GOPATH)/bin/swagger flatten --with-flatten=remove-unused -o ./.schema/api.swagger.json ./.schema/api.swagger.json
+ $$(go env GOPATH)/bin/swagger validate ./.schema/api.swagger.json
rm -rf internal/httpclient
mkdir -p internal/httpclient
- $$(go env GOPATH)/bin/swagger generate client -f ./docs/api.swagger.json -t internal/httpclient -A Ory_Hydra
+ $$(go env GOPATH)/bin/swagger generate client -f ./.schema/api.swagger.json -t internal/httpclient -A Ory_Hydra
make format
