Skip to content

Add support for min/max exclusive bounds #183

@ctrueden

Description

@ctrueden

It would be great if modules supported exclusive bounds for min and/or max. In terms of the ModuleItem API, we can add isMinExclusive() and isMaxExclusive() flags, which default to false. For @Parameter annotations, this could be done without modifying the type by supporting syntax like ">2" for min and "<3.5" for max. That is: look for >or< symbol leading the string, strip it out, and set the exclusivity flag to true. Then parse the rest as usual.

Thanks to Adrian Daerr for the suggestion.

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