Skip to content

Commit e063773

Browse files
committed
Use lowercase for nested array keys due to Viper bug
Due to spf13/viper#1386, array keys with mixed case are not parsed correctly. At least for the time being, mitigate by changing some keys to all lowercase. Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
1 parent 3c7bf05 commit e063773

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/reference/config.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,11 @@ nav_order: 2
585585

586586
|Key|Description|Type|Default Value|
587587
|---|-----------|----|-------------|
588-
|defaultKey|A default signing key for blockchain transactions within this namespace|`string`|`<nil>`
588+
|defaultkey|A default signing key for blockchain transactions within this namespace|`string`|`<nil>`
589589
|description|A description for the namespace|`string`|`<nil>`
590590
|name|The name of the namespace (must be unique)|`string`|`<nil>`
591591
|plugins|The list of plugins for this namespace|`string`|`<nil>`
592-
|remoteName|The namespace name to be sent in plugin calls, if it differs from namespace name|`string`|`<nil>`
592+
|remotename|The namespace name to be sent in plugin calls, if it differs from namespace name|`string`|`<nil>`
593593

594594
## namespaces.predefined[].multiparty
595595

internal/coreconfig/coreconfig.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ const (
3434
// NamespaceName is the long description for a pre-defined namespace
3535
NamespaceDescription = "description"
3636
// NamespaceRemoteName is the namespace name to be sent in plugin calls
37-
NamespaceRemoteName = "remoteName"
37+
NamespaceRemoteName = "remotename"
3838
// NamespacePlugins is the list of namespace plugins
3939
NamespacePlugins = "plugins"
4040
// NamespaceDefaultKey is the default signing key for blockchain transactions within this namespace
41-
NamespaceDefaultKey = "defaultKey"
41+
NamespaceDefaultKey = "defaultkey"
4242
// NamespaceMultiparty contains the multiparty configuration for a namespace
4343
NamespaceMultiparty = "multiparty"
4444
// NamespaceMultipartyEnabled specifies if multi-party mode is enabled for a namespace

internal/coremsgs/en_config_descriptions.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ var (
252252
ConfigNamespacesPredefinedName = ffc("config.namespaces.predefined[].name", "The name of the namespace (must be unique)", i18n.StringType)
253253
ConfigNamespacesPredefinedDescription = ffc("config.namespaces.predefined[].description", "A description for the namespace", i18n.StringType)
254254
ConfigNamespacesPredefinedPlugins = ffc("config.namespaces.predefined[].plugins", "The list of plugins for this namespace", i18n.StringType)
255-
ConfigNamespacesPredefinedRemoteName = ffc("config.namespaces.predefined[].remoteName", "The namespace name to be sent in plugin calls, if it differs from namespace name", i18n.StringType)
256-
ConfigNamespacesPredefinedDefaultKey = ffc("config.namespaces.predefined[].defaultKey", "A default signing key for blockchain transactions within this namespace", i18n.StringType)
255+
ConfigNamespacesPredefinedRemoteName = ffc("config.namespaces.predefined[].remotename", "The namespace name to be sent in plugin calls, if it differs from namespace name", i18n.StringType)
256+
ConfigNamespacesPredefinedDefaultKey = ffc("config.namespaces.predefined[].defaultkey", "A default signing key for blockchain transactions within this namespace", i18n.StringType)
257257
ConfigNamespacesMultipartyEnabled = ffc("config.namespaces.predefined[].multiparty.enabled", "Enables multi-party mode for this namespace (defaults to true if an org name or key is configured, either here or at the root level)", i18n.BooleanType)
258258
ConfigNamespacesMultipartyOrgName = ffc("config.namespaces.predefined[].multiparty.org.name", "A short name for the local root organization within this namespace", i18n.StringType)
259259
ConfigNamespacesMultipartyOrgDesc = ffc("config.namespaces.predefined[].multiparty.org.description", "A description for the local root organization within this namespace", i18n.StringType)

0 commit comments

Comments
 (0)