Mockingjay icon indicating copy to clipboard operation
Mockingjay copied to clipboard

Offer JSON Schema validation

Open kylef opened this issue 10 years ago • 2 comments

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)

kylef avatar Mar 08 '15 17:03 kylef

:+1: I would like to see this enhancement as well

bruceflowers avatar Jul 01 '15 15:07 bruceflowers

Was this ever implemented?

acfriedman avatar Apr 12 '18 21:04 acfriedman