Browse Source

Enforce model for the json image format

creack 12 years ago
parent
commit
3e8d1dfb69
1 changed files with 4 additions and 4 deletions
  1. 4 4
      graph/image.go

+ 4 - 4
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
 }