I am writing Robot tests for API endpoint which returns a response body of an array of objects.
I have the JSON schema for the individual object.
How does one validate an array of that JSON schema?
I have tried:
Expect Response Body Array ${schema}/alert.json
Expect Response Body [${schema}/alert.json]
I then created a new schema alerts.json which simply is an array of the object schema:
I am writing Robot tests for API endpoint which returns a response body of an array of objects. I have the JSON schema for the individual object. How does one validate an array of that JSON schema?
I have tried:
Expect Response Body Array ${schema}/alert.json
Expect Response Body [${schema}/alert.json]
I then created a new schema
alerts.json
which simply is an array of the object schema:and tried
Expect Response Body [${schema}/alerts.json]
This threw aRefResolutionError
for a$ref
contained in thealert.json
object.None of these solutions worked Is there a standard way to achieve this using Robot and REST? Thanks