Skip to content

Offer JSON Schema validation #14

Open

Description

@kylef

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)

Activity

  1. bruceflowers commented on Jul 1, 2015

    @bruceflowers

    👍 I would like to see this enhancement as well

  2. acfriedman commented on Apr 12, 2018

    @acfriedman

    Was this ever implemented?

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions