I have some shocking response JSON to work with from an internal client. They can't change it on the fly unfortunately as multiple teams are sending them requests and already dealing with this horrendous response.
My question is, is there any way to use OpenAPI to build an object structure which will map the incoming JSON below, with the, frankly, moronic name/value setup as you can see:
{
"data": [{
"name": "something",
"value": "123"
},
{
"name": "something2",
"value": "str"
},
{
"name": "something3",
"value": "str123"
},
{
"name": "something4",
"value": "str456"
},
{
"name": "something5",
"value": "str333"
},
{
"name": "something6",
"value": "str333rr"
},
{
"name": "something7",
"value": "str333rr322"
},
{
"name": "something8",
"value": "str333rr354"
},
{
"name": "something9:",
"value": "str333rr354543"
}
]
}