diff --git a/models/peer/peer.go b/models/peer/peer.go index 5c940b4..6663b0e 100644 --- a/models/peer/peer.go +++ b/models/peer/peer.go @@ -31,8 +31,8 @@ func (m PeerState) EnumIndex() int { // Peer is a struct that represents a peer type Peer struct { utils.AbstractObject - Url string `json:"url,omitempty" bson:"url,omitempty" validate:"required,base64url"` // Url is the URL of the peer (base64url) - PublicKey string `json:"public_key,omitempty" bson:"public_key,omitempty"` // PublicKey is the public key of the peer + Url string `json:"url,omitempty" bson:"url,omitempty" validate:"required"` // Url is the URL of the peer (base64url) + PublicKey string `json:"public_key,omitempty" bson:"public_key,omitempty"` // PublicKey is the public key of the peer Services map[string]int `json:"services,omitempty" bson:"services,omitempty"` State PeerState `json:"state" bson:"state" default:"0"` FailedExecution []PeerExecution `json:"failed_execution" bson:"failed_execution"` // FailedExecution is the list of failed executions, to be retried