Skip to content

Commit

Permalink
bugfix: fix error api json remarks
Browse files Browse the repository at this point in the history
Modify missing `omitempty` in json for api

Signed-off-by: Rudy Zhang <[email protected]>
  • Loading branch information
rudyfly committed Sep 11, 2018
1 parent 1a80143 commit d938b63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions apis/types/registry_service_config.go

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

5 changes: 2 additions & 3 deletions hack/codegen/swagger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

readonly SWAGGER_VERSION=0.12.0
readonly SWAGGER_VERSION=dev

# swagger::check_version checks the command and the version.
swagger::check_version() {
Expand All @@ -26,8 +26,7 @@ swagger::check_version() {
swagger::install() {
echo ">>>> install swagger-${SWAGGER_VERSION} <<<<"
local url
url="https://github.com/go-swagger/go-swagger/releases/download"
url="${url}/${SWAGGER_VERSION}/swagger_linux_amd64"
url="https://raw.githubusercontent.com/pouchcontainer/tools/master/bin/swagger"

wget --quiet -O /usr/local/bin/swagger "${url}"
chmod +x /usr/local/bin/swagger
Expand Down

0 comments on commit d938b63

Please sign in to comment.