diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-05-31 20:07:58 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-05-31 20:07:58 +0200 |
commit | 4bfda1a78c5ab769d7cfe91874287c0ee33f2800 (patch) | |
tree | bb14d1631139a733bd3b1d11726b8e5aee2a9334 /pkg | |
parent | 91cb33db85f6c8fb1b2da5df70f149f82c48d254 (diff) |
Fix boolean config keys not appearing in the generated Config.md
The reason why they didn't appear is that they didn't get a default value in the
generated schema; this commit fixes that.
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/jsonschema/generate.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/jsonschema/generate.go b/pkg/jsonschema/generate.go index 38b582844..582e84849 100644 --- a/pkg/jsonschema/generate.go +++ b/pkg/jsonschema/generate.go @@ -78,7 +78,7 @@ func isZeroValue(v any) bool { case string: return v == "" case bool: - return !v + return false case nil: return true } |