{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "namedResource": {
            "properties": {
                "name": {
                    "type": "string"
                },
                "resource_uri": {
                    "type": "string"
                }
            },
            "required": [
                "name",
                "resource_uri"
            ],
            "type": "object"
        }
    },
    "properties": {
        "created": {
            "pattern": "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}",
            "type": "string"
        },
        "games": {
            "items": {
                "$ref": "#/definitions/namedResource"
            },
            "type": "array"
        },
        "id": {
            "type": "integer"
        },
        "modified": {
            "pattern": "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{6}",
            "type": "string"
        },
        "name": {
            "type": "string"
        },
        "pokemon": {
            "$ref": "#/definitions/namedResource"
        },
        "resource_uri": {
            "type": "string"
        }
    },
    "required": [
        "resource_uri",
        "created",
        "modified",
        "name",
        "pokemon",
        "id",
        "games"
    ],
    "type": "object"
}