From b7420201f126313f5d6436fbe4f3f8ca00f8755d Mon Sep 17 00:00:00 2001 From: Mauro Morales Date: Thu, 18 Apr 2024 09:06:21 +0200 Subject: [PATCH] Convert env to a map of interfaces (#101) Signed-off-by: Mauro Morales --- schema/p2p_schema.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schema/p2p_schema.go b/schema/p2p_schema.go index 20e13f7..c0fdb8b 100644 --- a/schema/p2p_schema.go +++ b/schema/p2p_schema.go @@ -62,7 +62,7 @@ func (P2PNetworkExtended) JSONSchemaOneOf() []interface{} { // VPN represents the vpn block in the Kairos configuration. type VPN struct { - Create bool `json:"vpn,omitempty" default:"true"` - Use bool `json:"use,omitempty" default:"true"` - Envs interface{} `json:"env,omitempty"` + Create bool `json:"vpn,omitempty" default:"true"` + Use bool `json:"use,omitempty" default:"true"` + Envs map[string]interface{} `json:"env,omitempty"` }