Skip to content

Error saving config when a string field contains a purely numeric value #344

@mikuso

Description

@mikuso

Description

I'm experiencing an issue in the EVerest admin panel preventing me from saving the configuration file when using numeric-looking values in string fields.

Versions affected

Tested against v0.5.1.

Reproduction steps

For any module configuration input field which expect a string value, enter a numeric value instead. (i.e. any value which Javascript understands to be a "number") - for example:

  • 123
  • -12.34
  • 1e2

When attempting to save this config. it will be rejected due to a schema error (expected string, got number).

Comments

Admittedly, this is rarely if ever a problem, but I first noticed this happening when testing with a numeric value for the private_key_password field in the EvseSecurity module. (This issue isn't just limited to this one field though - it affects all string fields.)

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