Skip to content

Commit 91c9f0b

Browse files
buty4649claude
andauthored
fix: SystemFormGroup.ID を int に変更 (#45)
xp system form list 実行時に form_group.id のデコードで cannot unmarshal number into Go struct field ... of type string エラーが発生していたため、実 API のレスポンスに合わせて 型を string から int に修正する。 Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 4defdda commit 91c9f0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/xpoint/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ type SystemForm struct {
163163
}
164164

165165
type SystemFormGroup struct {
166-
ID string `json:"id"`
166+
ID int `json:"id"`
167167
Name string `json:"name"`
168168
FormCount int `json:"form_count"`
169169
Form []SystemForm `json:"form"`

0 commit comments

Comments
 (0)