help wanted
Métricas do repositório
- Stars
- (49.270 estrelas)
- Métricas de merge de PR
- (Mesclagem média 4d 2h) (15 fundiu PRs em 30d)
Description
Sometimes when the agent cannot extract a value, it will mark it as [], which prompts uneven matches and stops event generating. Is it a good practice to convert it into an empty value like ['']? In this way, events can be created as usual.
For example, change the jsonpath extract:
result = Utils.values_at(doc, extraction_details['path'])
to
result = (Utils.values_at(doc, extraction_details['path']) == [] ? [''] : Utils.values_at(doc, extraction_details['path']))
well, i am not sure whether it is a design on purpose.