Remove old, broken Validation

This commit is contained in:
Samuel Lorch 2023-10-09 23:37:40 +02:00
parent e12a1fe16f
commit f67ec52fae
13 changed files with 39 additions and 64 deletions

View file

@ -1,5 +1,5 @@
package vpn
type VPN struct {
Wireguard Wireguard `json:"wireguard" validate:"required,dive"`
Wireguard Wireguard `json:"wireguard"`
}

View file

@ -1,6 +1,6 @@
package vpn
type Wireguard struct {
Interfaces map[string]WireguardInterface `json:"interfaces" validate:"required,dive"`
Peers map[string]WireguardPeer `json:"peers" validate:"required,dive"`
Interfaces map[string]WireguardInterface `json:"interfaces"`
Peers map[string]WireguardPeer `json:"peers"`
}