From 9a8625f8b409365887b2afb093176832c898af97 Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 15 Nov 2024 09:07:52 +0100 Subject: [PATCH] no need of a required url base 64 --- models/peer/peer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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