Skip to content

Commit

Permalink
Generate client code with swagger in Makefile (#176)
Browse files Browse the repository at this point in the history
This used to happen in sigstore/sigstore, but was removed in sigstore/sigstore#103. Adding it back in here so that we can include the SCT in the client responses.

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
  • Loading branch information
priyawadhwa authored Aug 31, 2021
1 parent eed8f10 commit 42f7422
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ SWAGGER := $(TOOLS_BIN_DIR)/swagger

$(GENSRC): $(SWAGGER) $(OPENAPIDEPS)
$(SWAGGER) generate server -f openapi.yaml -q -r COPYRIGHT.txt -t pkg/generated --exclude-main -A fulcio_server --exclude-spec --flag-strategy=pflag -P github.com/coreos/go-oidc/v3/oidc.IDToken --additional-initialism=SCT
$(SWAGGER) generate client -f openapi.yaml -r COPYRIGHT.txt -t pkg/generated -P github.com/coreos/go-oidc/v3/oidc.IDToken

# this exists to override pattern match rule above since this file is in the generated directory but should not be treated as generated code
pkg/generated/restapi/configure_fulcio_server.go: $(OPENAPIDEPS)
Expand Down
19 changes: 19 additions & 0 deletions pkg/generated/client/operations/signing_cert_responses.go

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

0 comments on commit 42f7422

Please sign in to comment.