{
    "$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"
        },
        "id": {
            "type": "integer"
        },
        "image": {
            "type": "string"
        },
        "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": [
        "name",
        "id",
        "resource_uri",
        "created",
        "modified",
        "pokemon",
        "image"
    ],
    "type": "object"
}