File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ swagger-check: generate-swagger
284284.PHONY : swagger-validate
285285swagger-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
You can’t perform that action at this time.
0 commit comments