ozontech/cute

Can't read json_path syntax in AssertBody

Closed this issue · 2 comments

code:
OptionalAssertBody( json.Equal("$.entries[?(@.role == 'HR-партнер')].event", "Анкета согласована"), ).
error:
test.go:178: [OPTIONAL ERROR] evaluating '$.entries[?(@.role == 'Сторонняя система проверки СБ')].event' resulted in error: 'parsing error: $.entries[?(@.role == 'Сторонняя система проверки СБ')].event :1:23 - 1:54 could not parse string: invalid syntax'

This syntax is corresponds to the library JsonPath, but using this in 0.1.8 make error

Implemented in #48