Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer JSON Schema validation #14

Open
kylef opened this issue Mar 8, 2015 · 2 comments
Open

Offer JSON Schema validation #14

kylef opened this issue Mar 8, 2015 · 2 comments

Comments

@kylef
Copy link
Owner

kylef commented Mar 8, 2015

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 kylef mentioned this issue Mar 31, 2015
9 tasks
@bruceflowers
Copy link

👍 I would like to see this enhancement as well

@acfriedman
Copy link

Was this ever implemented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants