summaryrefslogtreecommitdiff
path: root/internal/configuration/decode_hooks.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-09-03 16:01:46 +1000
committerGitHub <noreply@github.com>2023-09-03 16:01:46 +1000
commit40026701fdf604b874334166b9984f6ac003f0fa (patch)
tree7e7f90d62e07a627c8fc4e6335749d45ebcedd25 /internal/configuration/decode_hooks.go
parent3d1a02a8d3aa75e2e7bd2d7520e29518d11afa62 (diff)
docs: jsonschema (#5493)
Adds a JSON Schema for the configuration, user database, and most exports. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/configuration/decode_hooks.go')
-rw-r--r--internal/configuration/decode_hooks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/configuration/decode_hooks.go b/internal/configuration/decode_hooks.go
index b07be7412..05dbba95f 100644
--- a/internal/configuration/decode_hooks.go
+++ b/internal/configuration/decode_hooks.go
@@ -490,7 +490,7 @@ func StringToCryptoPrivateKeyHookFunc() mapstructure.DecodeHookFuncType {
return data, nil
}
- field, _ := reflect.TypeOf(schema.TLSConfig{}).FieldByName("PrivateKey")
+ field, _ := reflect.TypeOf(schema.TLS{}).FieldByName("PrivateKey")
expectedType := field.Type
if t != expectedType {