From 3e8d1dfb69e74414b3466fee3195432f17445bbc Mon Sep 17 00:00:00 2001 From: creack Date: Thu, 21 Mar 2013 03:52:58 -0700 Subject: [PATCH] Enforce model for the json image format --- graph/image.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/graph/image.go b/graph/image.go index 210ba7cedb..af6cbd0190 100644 --- a/graph/image.go +++ b/graph/image.go @@ -15,10 +15,10 @@ import ( ) type Image struct { - Id string - Parent string - Comment string - Created time.Time + Id string `json:"id"` + Parent string `json:"parent,omitempty"` + Comment string `json:"comment,omitempty"` + Created time.Time `json:"created"` graph *Graph }