Luca Sorgiacomo
03/10/2023, 12:19 PM/api/docs
.
I'm testing the /flows/filter
endpoint and I'm finding the eq_
operator works only when using the "query style" as follows:
{
"query": {
"deployments": {
"work_queue_name": {
"eq_": "integration"
}
}
}
}
If I put the filter directly, I get the following pydantic error:
{
"exception_message": "Invalid request received.",
"exception_detail": [
{
"loc": [
"body",
"deployments",
"work_queue_name",
"eq_"
],
"msg": "extra fields not permitted",
"type": "value_error.extra"
}
],
"request_body": {
"deployments": {
"work_queue_name": {
"eq_": "integration"
}
}
}
}
But if I use any_
with the same value in an array it works.
The same error happens using all_
with an array.
Should I file a bug report?