[
    {
        "description": "asynchronously resolve a reference to an external schema",
        "schema": {
            "properties": {
                "location": { "$ref": "http://www.jayschema.org/test-targets/geo.json#" }
            }
        },
        "tests": [
            {
                "description": "matches schema",
                "data": {
                    "location": {
                        "latitude": 48.8583,
                        "longitude": 2.2945
                    }
                },
                "valid": true
            },
            {
                "description": "does not match schema",
                "data": {
                    "location": {
                        "latitude": "hello"
                    }
                },
                "valid": false
            }
        ]
    },

    {
        "description": "asynchronously resolve a reference to an external schema (bare URI)",
        "schema": {
            "properties": {
                "location": { "$ref": "http://www.jayschema.org/test-targets/geo.json" }
            }
        },
        "tests": [
            {
                "description": "matches schema",
                "data": {
                    "location": {
                        "latitude": 48.8583,
                        "longitude": 2.2945
                    }
                },
                "valid": true
            },
            {
                "description": "does not match schema",
                "data": {
                    "location": {
                        "latitude": "hello"
                    }
                },
                "valid": false
            }
        ]
    }

]
