diff --git a/.github/workflows/auto-deploy.yaml b/.github/workflows/auto-deploy.yaml index 2ae23ef61..e56bebeba 100644 --- a/.github/workflows/auto-deploy.yaml +++ b/.github/workflows/auto-deploy.yaml @@ -9,7 +9,7 @@ jobs: publish: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # git-pr-release needs the git histories - uses: ruby/setup-ruby@v1 diff --git a/.github/workflows/check_go.yaml b/.github/workflows/check_go.yaml index a8f9f0762..9c7c86d60 100644 --- a/.github/workflows/check_go.yaml +++ b/.github/workflows/check_go.yaml @@ -14,7 +14,7 @@ jobs: test: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: go-version-file: "go/go.mod" diff --git a/.github/workflows/check_ts.yaml b/.github/workflows/check_ts.yaml index 43bf25a64..133e5af73 100644 --- a/.github/workflows/check_ts.yaml +++ b/.github/workflows/check_ts.yaml @@ -14,7 +14,7 @@ jobs: build: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: "16" diff --git a/.github/workflows/deploy-api-server.yaml b/.github/workflows/deploy-api-server.yaml index 46ac364d6..46e22c27e 100644 --- a/.github/workflows/deploy-api-server.yaml +++ b/.github/workflows/deploy-api-server.yaml @@ -14,7 +14,7 @@ jobs: build: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: docker/setup-buildx-action@v2 - name: set tag run: |- diff --git a/.github/workflows/deploy-client.yaml b/.github/workflows/deploy-client.yaml index 9751fd8c3..944a3dea7 100644 --- a/.github/workflows/deploy-client.yaml +++ b/.github/workflows/deploy-client.yaml @@ -14,7 +14,7 @@ jobs: build: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: docker/setup-buildx-action@v2 - name: set tag run: |- diff --git a/.github/workflows/gen_buf.yaml b/.github/workflows/gen_buf.yaml index 1d3ffb44d..1bb983196 100644 --- a/.github/workflows/gen_buf.yaml +++ b/.github/workflows/gen_buf.yaml @@ -15,7 +15,7 @@ jobs: build: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.ref }} diff --git a/proto/spec/v1/userdata.proto b/proto/spec/v1/userdata.proto index aab0862bc..2f1933e6f 100644 --- a/proto/spec/v1/userdata.proto +++ b/proto/spec/v1/userdata.proto @@ -21,8 +21,8 @@ service UserDataService { message User { // ユーザID。他のIDはuint32であるが、ユーザIDのみJWTを使う都合上string。 string id = 1 [(validate.rules).string = { - min_len: 1, - max_len: 1024, + min_len: 1 + max_len: 1024 }]; } message Users { @@ -67,7 +67,7 @@ message Horse { message HorseDetail { Horse data = 1 [(validate.rules).message.required = true]; string owner = 2 [(validate.rules).string = { - min_len: 2, + min_len: 2 max_len: 256 }]; message Image { @@ -79,12 +79,12 @@ message HorseDetail { } // 拡張子 ImageType type = 1 [(validate.rules).enum = { - not_in: [0], - defined_only: true, + not_in: [0] + defined_only: true }]; // 画像のデータ bytes(img) bytes data = 2 [(validate.rules).bytes = { - min_len: 1, + min_len: 1 max_len: 1048576 }]; } @@ -129,7 +129,7 @@ message RegisterHorseRequest { string name = 1 [(validate.rules).string.pattern = "^\\p{Katakana}(\\p{Katakana}|ー){1,8}$"]; // 所有者名 string owner = 2 [(validate.rules).string = { - min_len: 2, + min_len: 2 max_len: 256 }]; // admin JWT @@ -184,7 +184,7 @@ message RaceOrder { // 順位。最も早くゴールしたときに1。 uint32 order = 1 [(validate.rules).uint32.gte = 1]; NoteType note = 2 [(validate.rules).enum = { - defined_only: true, + defined_only: true not_in: [0] }]; }