Skip to content

Enhance Option validation for Any case #12

@emirkmo

Description

@emirkmo

Options are currently Literals. This has some nice type hint benefits in your code editor and keeps things simple. But it doesn't flexibly capture any case validation of most AdaptiveCard enums (option fields).

Can investigate using a wrap validator (complicated & slow) or case insensitive StrEnums combined with a before/after validator (not important really). Or could implement the StrEnum as a custom class. Like the failed AnyCaseLiteral. Unlike Literal which is super unique in python, StrEnum would have worked..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions