Karate - $ | not a string (LIST:STRING) failure

Viewed 643

Karate DSL: I have a problem with assertion using regex, which works fine with Karate version 0.9.6, but fails with version 1.0.1 (1.0.0 as well).

This is the failure message coming from Karate:

And match response.data[*].rule.url contains "#regex .*https://example.com/Invalid_checksum.*"
match failed: CONTAINS
  $ | not a string (LIST:STRING)
  ["https://example.com/Identifier_unknown","https://example.com/Invalid_checksum","https://example.com/Legal_form_"]
  '#regex .*https://example.com/Invalid_checksum.*'

As I mentioned - it is working with 0.9.6, so I assume that the regex is writen properly. Something must have been changed since Karate 1.0.0 (?)

Can someone confirm that this is Karate bug or/and have any idea of a workaround?

1 Answers
Related