Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20755

[Bug?] Autogenerated json assert on content does not work if json element has a . in the name

$
0
0

 

I think this is a fairly straightforward bug, when I right click on some json content (sample below with data redacted for privacy) and select 'assert on content' it auto generates a jsonpath assert but immediately throws an 'invalid jsonpath' error.  It seems the . in the json element is throwing things off.

 

Here is the json child element sample (the structure is similar to data/parent/metadata/place.ctry)

              "place.ctry": "Canada"

 

The assert being generated is:

$.data[0].parent.metadata.place.ctry

 

But that implies .ctry is a sub element to place, not one element.

 

Regards,

Ton Vlaming

Ps. This is from readyApi 1.4.1


Viewing all articles
Browse latest Browse all 20755

Trending Articles