From 2cc08483a2e5c9e2f6b432367c97c096090e7bec Mon Sep 17 00:00:00 2001 From: bitwhisker Date: Mon, 5 Oct 2026 14:10:36 +0200 Subject: [PATCH] fix(handlers): values where omited when false and set go min version to 1.25 switching from v1 to v2 of encoding/json in the root handler to not omit false values in the spaceapi response. this increases the min go version to 1.25. --- go.mod | 2 +- handlers/root.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 506613d..e4ba75f 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module git.hamburg.ccc.de/ccchh/spaceapid -go 1.22 +go 1.25 diff --git a/handlers/root.go b/handlers/root.go index 88cdc55..28b0c54 100644 --- a/handlers/root.go +++ b/handlers/root.go @@ -1,7 +1,7 @@ package handlers import ( - "encoding/json" + "encoding/json/v2" "log" "net/http" -- 2.54.0