asyrjasalo / RESTinstance

Robot Framework library for RESTful JSON APIs
https://asyrjasalo.github.io/RESTinstance
GNU Lesser General Public License v3.0
203 stars 84 forks source link

Expect Response Body for type Array #136

Closed TheRayFitzgerald closed 1 year ago

TheRayFitzgerald commented 1 year ago

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:

I then created a new schema alerts.json which simply is an array of the object schema:

{
    "type": "array",
    "items": {
        "$ref": "file:../schema/alert.json"
    }
}

and tried

None of these solutions worked Is there a standard way to achieve this using Robot and REST? Thanks

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.