Skip to content

Commit be039e2

Browse files
authored
Update Makefile
1 parent 280ec60 commit be039e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ swagger-check: generate-swagger
284284
.PHONY: swagger-validate
285285
swagger-validate: ## check if the swagger spec is valid
286286
@# swagger "validate" requires that the "basePath" must start with a slash, but we are using Golang template "{{...}}"
287-
@$(SED_INPLACE) -E 's|"basePath":( *)"(.*)"|"basePath":\1"/\2"|g' './$(SWAGGER_SPEC)' # add a prefix slash to basePath
287+
@$(SED_INPLACE) -E -e 's|"basePath":( *)"(.*)"|"basePath":\1"/\2"|g' './$(SWAGGER_SPEC)' # add a prefix slash to basePath
288288
@# FIXME: there are some warnings
289289
$(GO) run $(SWAGGER_PACKAGE) validate './$(SWAGGER_SPEC)'
290290
@$(SED_INPLACE) -E -e 's|"basePath":( *)"/(.*)"|"basePath":\1"\2"|g' './$(SWAGGER_SPEC)' # remove the prefix slash from basePath

0 commit comments

Comments
 (0)