Skip to content

[Command Validation] Allow 0 as valid command value #325

Open
@maxekman

Description

@maxekman

Is your feature request related to a problem? Please describe.
Sometimes it's valid to have 0 as a valid command value, as checked by CheckCommand().

Describe the solution you'd like
Would be useful to have an additional struct field to allow 0 as a valid command value: eh:”optional,allow_zero”

Describe alternatives you've considered
To always allow 0, but that would break existing API usage.

Additional context

// Don't check for zero for value types:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions