karate icon indicating copy to clipboard operation
karate copied to clipboard

contains deep doesn't handle "##array" anymore

Open renaud-ninauve opened this issue 2 years ago • 4 comments

When using "contains deep", "##array" is consider as the string "#array" and not as an optional array matcher. Note that it works with "contains".

I reproduced this issue in karate 1.1.0 and 1.2.0. It worked in 1.0.0 and 1.0.1.

bug-contains-deep-optional-array.zip

renaud-ninauve avatar May 10 '22 14:05 renaud-ninauve

for those who want tips on how to fix, see https://github.com/karatelabs/karate/issues/1996

ptrthomas avatar May 10 '22 17:05 ptrthomas

In my case it also involves ^^ and ^+ contain shortcuts as mentioned in the https://stackoverflow.com/questions/73077734/karate-contains-only-shortcut-fails-in-v1-2-0 question.

CleanHit avatar Jul 22 '22 11:07 CleanHit

@CleanHit it is fine to open a new issue (with as simple a way to replicate as possible, 2-3 lines), you are most welcome to contribute a PR

ptrthomas avatar Jul 22 '22 11:07 ptrthomas

@ptrthomas OK, I'll open a new issue. I'm not familiar enough with the karate code to even know where to look for the related implementation.

CleanHit avatar Jul 22 '22 12:07 CleanHit

1.3.0 released

ptrthomas avatar Nov 02 '22 17:11 ptrthomas