I’ve finally reached the testing phase! A few questions:
first question: For the validate.contract test I can see the following:
output.body [validate.contract] [schema object not shown for now]
(root): Invalid type. Expected: object, given: array (root): Invalid type. Expected: object, given: array (root): Must validate all the schemas (allOf)
The document is not valid. see errors
Ok, cool - but I wanted to see WHERE it’s not valid - could you point me to the right place to check which items are failing the assertion? The use case is simply telling the engineer what to change.
The use case here is to post random objects, and then GET and assert the datapoints all propogated correctly and that the proper things get set.
For instance, if my schema specifies a JSON like that:
Example use case - i know that if “bar”: is a specific value then the system should do things, and on a subsequent get of a different object I would see a certain value. I would like to assert that - all the while generating random items for the objects I place into the system based on the schema.