Thanks for the reply.
I have been trying to create a schema based on the response data (which i have done in previous steps) but i dont really understand the structure of how the schema should be.
The response body might contain several devices, or many devices, each with 00s of properties but i really only want 5 or 6 of them.
1 of the properties may or may not exist.
If someone could help me to make a schema to only capture or pass certain properties through that would be really helpful.
This was a schema i tried a few attempts back,
{
"type": "object",
"items": {
"type": "array",
"properties": {
"_id": {
"type": "string"
},
"ip": {
"type": "string"
},
"mac": {
"type": "string"
},
"model": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"_id",
"ip",
"mac",
"model",
"type",
"version"
]
}
}
And the response,
