Skip to content

bug(dashmate): user unable to set JSON config values #928

Description

@pshenmic

Expected Behavior

User can set JSON values with dashmate config set. For example, allowIps:

dashmate config set core.rpc.allowIps '[ "127.0.0.1", "172.16.0.0/12", "192.168.0.0/16", "110.144.131.159" ]'

Current Behavior

Dashmate throws an error because it only recognizes strings at the moment:

InvalidOptionPathError: config/core/rpc/allowIps must be array

Possible Solution

Possibly read the schema and do a proper type cast.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions