Skip to content

JSON keys can only contain alpha characters  #40

@adamdecaf

Description

@adamdecaf

I was trying to insert a randomly generated ID from another system (e.g. 81ee344abf28aa3fbfd174eebf20686fc0164368) and ran into the following error:

2019/04/24 20:29:57 Error loading payload: Invalid key in data json: 81ee344abf28aa3fbfd174eebf20686fc0164368

Looking at the source code quick shows that account and transaction data object keys are limited to a small set of characters.

var validKey = regexp.MustCompile(`^[a-z_A-Z]+$`)

Is there any reason digits (0-9) can't be stored?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions