# Path: grappa_http/operators/base.py
# class BaseOperator(Operator):
#     def isadapter(self, response):
#     def adapt(self, response):
#     def on_access(self, response):
#     def match(self, response, *expected, **kw):


import json
from jsonschema import Draft4Validator
from .base import BaseOperator, Operator
        res | should.do_not.satisfy.jsonschema.equal.to(schema)

        # Expect style
        res | expect.to.satisfy.jsonschema(schema)
        res | expect.to.satisfy.jsonschema.equal.to(schema)

        # Expect style - negation form
        res | expect.to_not.satisfy.jsonschema(schema)
        res | expect.to_not.satisfy.jsonschema.equal.to(schema)
    """

    # Defines operator kind
    kind = Operator.Type.MATCHER

    # Operator keywords
    operators = ('json_schema', 'jsonschema')

    # Operator aliases
    aliases = ('equal', 'to', 'be', 'match')

    # Enable raw reporting mode for this operator
    raw_mode = True

    # Limit raw size characters
    raw_size = 500

    # Show match diff on error
    show_diff = True

    # Error message templates

# Path: grappa_http/operators/base.py
# class BaseOperator(Operator):
#     def isadapter(self, response):
#     def adapt(self, response):
#     def on_access(self, response):
#     def match(self, response, *expected, **kw):


# Path: grappa_http/operators/json_schema.py
import json
from jsonschema import Draft4Validator
from .base import BaseOperator, Operator

        res | should.do_not.satisfy.jsonschema.equal.to(schema)

        # Expect style
        res | expect.to.satisfy.jsonschema(schema)
        res | expect.to.satisfy.jsonschema.equal.to(schema)

        # Expect style - negation form
        res | expect.to_not.satisfy.jsonschema(schema)
        res | expect.to_not.satisfy.jsonschema.equal.to(schema)
    """

    # Defines operator kind
    kind = Operator.Type.MATCHER

    # Operator keywords
    operators = ('json_schema', 'jsonschema')

    # Operator aliases
    aliases = ('equal', 'to', 'be', 'match')

    # Enable raw reporting mode for this operator
    raw_mode = True

    # Limit raw size characters
    raw_size = 500

    # Show match diff on error
    show_diff = True

    # Error message templates

    expected_message = Operator.Dsl.Message(