Cannot use “==” and “contains” in same line of scenario using conditional logic in Karate
问题 This is a follow up of a question noted here Lets says our implemented server v1 and v2 response looks as follows v1Response = { id: "1", name: "awesome" } v2Response = { id: "2", name: "awesome", value: "karate" } Similarly we define the client schema for v1 and v2 like as follows v1Schema = { id: "#string", name: "#string } v2Schema = { id: "#string", name: "#string, value: "#string" } We implement schema validation in our generic scenario as follows. We can easily set the "response" with