Erich Zimmerman
03/27/2025, 3:34 PM{
"plans": {
"ABCD32": {
"idRequired": true,
"ids": [
"1234"
]
}
}
}
I'm trying to use object(<name>) for this, but the name isn't generally predictable.
rootResponseObject.object("plans", (plans) ->
plans.object("??????", (plan) -> {
ratePlan.booleanType("idRequired", true);
ratePlan.array("ids", (item) -> item.stringType("12345"));
})
);
I think I'm a bit confused on when we want things to be more general, and when "test by example" is the right way to go. Since I control the request and data, should I just match to that exact string as the result that fulfills the example?Erich Zimmerman
03/27/2025, 3:53 PMeachValueLike method.rholshausen
03/27/2025, 10:17 PMrholshausen
03/27/2025, 10:18 PM