Skip to content

Make result_pattern optional for POST interactions #5

@Sophietje

Description

@Sophietje

The current code requires a result_pattern to be defined for a POST interaction, even though the Knowledge Engine supports POST interactions with only an argument_pattern. This is caused by

result_pattern=ki["result_pattern"],
where it always tries to read the result_pattern . If the result_pattern is not defined then it'll cause a runtime error. It would be best if we make this optional by first checking whether this field is defined, and if it is not defined then initialize it to null.

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