Skip to content

Commit 2b51c99

Browse files
committed
Add example for message ID
1 parent 9b1374f commit 2b51c99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/pkg/entities/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const (
3939

4040
// Message represents a message sent between 2 phone numbers
4141
type Message struct {
42-
ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid;"`
42+
ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid;" example:"32343a19-da5e-4b1b-a767-3298a73703cb"`
4343
From string `json:"from" gorm:"index:idx__messages__from__to" example:"+18005550199"`
4444
To string `json:"to" gorm:"index:idx__messages__from__to" example:"+18005550100"`
4545
Content string `json:"content" example:"This is a sample text message"`

0 commit comments

Comments
 (0)