i get this as response:
[
{
    "id": 1,
    "name": "The Russian",
    "type": "fiction",
    "available": true
},
{
    "id": 2,
    "name": "Just as I Am",
    "type": "non-fiction",
    "available": false
},
{
    "id": 3,
    "name": "The Vanishing Half",
    "type": "fiction",
    "available": true
}
]
how can i match that all responses have type with either 'fiction' or 'non-fiction'
i tried this :
  * def booktypes = ['fiction','non-fiction']
  * def schema = { type: '#? booktypes.contains(_)' }
  * match response contains schema