diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-09-03 16:01:46 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-03 16:01:46 +1000 |
| commit | 40026701fdf604b874334166b9984f6ac003f0fa (patch) | |
| tree | 7e7f90d62e07a627c8fc4e6335749d45ebcedd25 /internal/configuration/decode_hooks.go | |
| parent | 3d1a02a8d3aa75e2e7bd2d7520e29518d11afa62 (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.go | 2 |
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 { |
