Response body: JSON value is equal or greater than

@Marek_Melocik will do (I have to update also the keywords code, since the one in this example is validating just JSON objects, if the response is an array slight modifications are needed)

@alexfeel to avoid headache, will be good if you add some additional verification’s before to actually check the schema, e.g:

WS.comment("Check response status")
WS.verifyResponseStatusCode(response, 200)

WS.comment("Check response contentType")
assert response.isJsonContentType()

WS.comment("Validate response schema")
jsonString= response.getResponseBodyContent()
CustomKeywords.'verify.Verify.verifyJsonSchema'(jsonString, schemaString)

There is no point to check the schema if the API call has failed or the response is not a valid Json.

2 Likes