Skip to content

Commit dca35bd

Browse files
authored
fix: disable decode patch id (#831)
1 parent 9f25bad commit dca35bd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: api/memo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ type MemoCreate struct {
5757
}
5858

5959
type MemoPatch struct {
60-
ID int
60+
ID int `json:"-"`
6161

6262
// Standard fields
6363
CreatedTs *int64 `json:"createdTs"`

Diff for: api/resource.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type ResourceFind struct {
4141
}
4242

4343
type ResourcePatch struct {
44-
ID int
44+
ID int `json:"-"`
4545

4646
// Standard fields
4747
UpdatedTs *int64

Diff for: api/shortcut.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type ShortcutCreate struct {
2424
}
2525

2626
type ShortcutPatch struct {
27-
ID int
27+
ID int `json:"-"`
2828

2929
// Standard fields
3030
UpdatedTs *int64

Diff for: api/user.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (create UserCreate) Validate() error {
6969
}
7070

7171
type UserPatch struct {
72-
ID int
72+
ID int `json:"-"`
7373

7474
// Standard fields
7575
UpdatedTs *int64

0 commit comments

Comments
 (0)