Closed hettling closed 5 years ago
Problem is that named lists will create elements in the querySpec JSON:
> QuerySpec$new(conditions = list(qc))$toJSONString()
{
"conditions": [
{
"field": "identifications.defaultClassification.genus",
"operator": "EQUALS",
"value": "Solanum"
}
]
}
> QuerySpec$new(conditions = list(solanum=qc))$toJSONString()
{
"conditions": {
"solanum": {
"field": "identifications.defaultClassification.genus",
"operator": "EQUALS",
"value": "Solanum"
}
}
}
This works now, unit test with above example added.
Named lists in query conditions do not work?