From c33eaba1c08d371df00acc815f3a70845c580ed3 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Fri, 7 Feb 2025 22:21:10 +0100 Subject: [PATCH] remove unsupported validator (#360) --- internal/app/api/v1/models/models_peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/api/v1/models/models_peer.go b/internal/app/api/v1/models/models_peer.go index 7026dc8..1836fc9 100644 --- a/internal/app/api/v1/models/models_peer.go +++ b/internal/app/api/v1/models/models_peer.go @@ -69,7 +69,7 @@ type Peer struct { // PresharedKey is the optional pre-shared Key of the peer. PresharedKey string `json:"PresharedKey" example:"yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk=" binding:"omitempty,len=44"` // PersistentKeepalive is the optional persistent keep-alive interval in seconds. - PersistentKeepalive ConfigOption[int] `json:"PersistentKeepalive" binding:"omitempty,gte=0"` + PersistentKeepalive ConfigOption[int] `json:"PersistentKeepalive"` // PrivateKey is the private Key of the peer. PrivateKey string `json:"PrivateKey" example:"yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk=" binding:"required,len=44"`