You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to add the rule like when the "id" is "user1" then "email" field is mandatory. And if "id" is anything else apart from "user1" then "email" field is not mandatory. How can we achieve this using "LambdaDslObject"
Here is sample LambdaDslObject that we are setting
data.object(
USER,
user -> user.stringValue(ID, "user1"));
The text was updated successfully, but these errors were encountered:
Hello team,
We are trying to write Contract test for Async messages using Pact using Java.
We have the below object
"user": {
"id": "user1",
"email": "[email protected]"
}
We want to add the rule like when the "id" is "user1" then "email" field is mandatory. And if "id" is anything else apart from "user1" then "email" field is not mandatory. How can we achieve this using "LambdaDslObject"
Here is sample LambdaDslObject that we are setting
data.object(
USER,
user -> user.stringValue(ID, "user1"));
The text was updated successfully, but these errors were encountered: