Skip to content

Add a "condition" field to anyOf/oneOf schemas in the commands' reply schema #11896

@fadidahanna

Description

@fadidahanna

The command reply schema something can be depends on different arguments or conditions, and we would like to have a way to formalize such conditions in the reply schema.

We suggest adding a "condition" field to anyOf/oneOf schemas that refers to args.
E.g. when SET returns NULL, the condition is arguments.get||arguments.condition, for OK the condition is !arguments.get, and for string the condition is arguments.get.

See the discussion in Reply schema PR

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