Skip to content

Commit

Permalink
Use any for unknown VisitNote types (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
willfitze authored Jan 2, 2025
1 parent 83548d0 commit 594f250
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions visit_note.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ type VisitNoteBullet struct {
Version int64 `json:"version"` //: 1,
Sequence int64 `json:"sequence"` //: 0,
Author int64 `json:"author"` //: 10,
ReplacedByEdit *string `json:"replaced_by_edit"` //: null,
ReplacedBy *string `json:"replaced_by"` //: null,
Edit *int64 `json:"edit"` //: null,
ReplacedByEdit any `json:"replaced_by_edit"` //: null,
ReplacedBy any `json:"replaced_by"` //: null,
Edit any `json:"edit"` //: null,
DeletedDate *time.Time `json:"deleted_date"` //: null,
NoteDocument *VisitNoteNoteDocument `json:"note_document"` //: null,
NoteItem *VisitNoteNoteItem `json:"note_item"` //: null,
Expand All @@ -83,9 +83,9 @@ type VisitNoteChild struct {
Sequence int64 `json:"sequence"` //: 0,
Author int64 `json:"author"` //: 10,
UpdatedDate time.Time `json:"updated_date"` //: "2022-05-15T13:50:09"
ReplacedByEdit *string `json:"replaced_by_edit"` //: null,
ReplacedBy *string `json:"replaced_by"` //: null,
Edit *string `json:"edit"` //: null,
ReplacedByEdit any `json:"replaced_by_edit"` //: null,
ReplacedBy any `json:"replaced_by"` //: null,
Edit any `json:"edit"` //: null,
DeletedDate *time.Time `json:"deleted_date"` //: null,
NoteItem *VisitNoteNoteItem `json:"note_item"` //: null,
NoteDocument *VisitNoteNoteDocument `json:"note_document"` //: null,
Expand Down
1 change: 0 additions & 1 deletion visit_note_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func TestVisitNoteService_Create(t *testing.T) {
Version: 1,
Sequence: 1,
Author: 12345,
Edit: Ptr(int64(123)),
},
},
ChartDate: time.Date(2024, 4, 15, 0, 0, 0, 0, time.UTC),
Expand Down

0 comments on commit 594f250

Please sign in to comment.