examples bugfix

This commit is contained in:
Vladimir V Maksimov
2025-11-08 19:25:20 +03:00
parent b2218dd198
commit 035cce844c

View File

@@ -20,10 +20,10 @@ type Version struct {
IsSnapshot bool `json:"is_snapshot" example:"false"`
// JSON Patch или nil, если Snapshot
Patch json.RawMessage `json:"patch,omitempty" gorm:"type:json" example:"[{\"op\":\"replace\",\"path\":\"/name\",\"value\":\"new name\"}]"`
Patch json.RawMessage `json:"patch,omitempty" gorm:"type:json"`
// Полный JSON, если IsSnapshot = true
Snapshot json.RawMessage `json:"snapshot,omitempty" gorm:"type:json" example:"{\"field\": \"value\"}"`
Snapshot json.RawMessage `json:"snapshot,omitempty" gorm:"type:json"`
CreatedAt time.Time `json:"created_at" example:"2025-01-02T15:04:05Z"`
}