Mockingjay
Mockingjay copied to clipboard
Offer JSON Schema validation
Making use of JSONSchema to provider a matcher.
This might look something like:
let schema = Schema([
"type": "object",
"properties": [
"name": ["type": "string"],
"price": ["type": "number"],
],
"required": ["name"],
])
let matcher = allOf([
uri('/'),
json(schema),
])
stub(matcher, response)
:+1: I would like to see this enhancement as well
Was this ever implemented?