Skip to content

Ensure consequence.params.ignorePlurals can be deserialized from string #587

@aseure

Description

@aseure

It was discovered that the Algolia Search API is sometimes returning the
ignorePlurals field from a Query Rule's consequence params field as a
string, such as:

"consequence": {
    "params": {
        "ignorePlurals": "false"
    }
}

Could you please ensure that the deserialization of query rules coming from
getRule, getRules, browseRules are correctly decoding those strings
without failing.

Also, like we did for other string-based booleans, it would be convenient to
convert the string to an actual boolean when the string is equal to "true" or
"false".

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