Alan Wong
04/25/2025, 1:14 PM{
"data": [
{
"id": "123456789"
},
{
"id": "111111111",
"optional_stuff": {
"data_map": {
"blah_1": true,
"blah_2": 123456
}
}
}
]
}
So my question is how to write the pact contract such that "id"
is mandatory but "optional_stuff"
is optional? At the moment I have to only specify the "id"
part as it's unclear if pact supports optional data.Yousaf Nabi (pactflow.io)
Alan Wong
04/25/2025, 1:59 PMYousaf Nabi (pactflow.io)
Bas Dijkstra
04/25/2025, 4:56 PM