From ab1cab0db527ae0ae4a72b8895233eb99ec3fd34 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 28 Nov 2015 10:40:45 +0100 Subject: Add mandatory field --- messages.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'messages.go') diff --git a/messages.go b/messages.go index c469c5b..07c6fe7 100644 --- a/messages.go +++ b/messages.go @@ -30,9 +30,10 @@ type Registration struct { // Authorization Objects type Authorization struct { + Resource string `json:"resource"` Identifier Identifier `json:"identifier"` Status string `json:"status,omitemtpy"` // valid - Expires string `json:"expires,omitempty"` // 2015-03-01 + Expires string `json:"expires,omitempty"` // 2006-01-02 Challenges []Challenge `json:"challenges"` Combinations [][]int `json:"combinations,omitemtpy"` } @@ -47,6 +48,6 @@ type Identifier struct { type Challege struct { Type string `json:"type"` // http-01 Status string `json:"status"` // valid - Validated string `json:"validated"` // 2014-12-01T12:05Z + Validated string `json:"validated"` // 2006-01-02T15:04Z KeyAuthorization string `json:"keyAuthorization"` } -- cgit v1.2.3