Add JSON tags to RegistrationResource as used in official client

This commit is contained in:
Jan Zak 2015-11-13 20:20:15 +01:00
parent ec6d2bba4f
commit 5f566d2e0c

View file

@ -45,10 +45,10 @@ type Registration struct {
// RegistrationResource represents all important informations about a registration
// of which the client needs to keep track itself.
type RegistrationResource struct {
Body Registration
URI string
NewAuthzURL string
TosURL string
Body Registration `json:"body,omitempty"`
URI string `json:"uri,omitempty"`
NewAuthzURL string `json:"new_authzr_uri,omitempty"`
TosURL string `json:"terms_of_service,omitempty"`
}
type authorizationResource struct {