{
    "id": "http://schema.hyperrest.com/ietf/rfc3339_timestamps.json",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definations": {
        "date_fullyear": {
            "title": "Year",
            "description": "Full year (YYYY)",
            "type": "string",
            "minLength": 4,
            "maxLength": 4,
            "pattern": "/^[0-9]{4}$/",
            "example": "2001"
        },
        "full_date": {
            "title": "Date",
            "description": "Full date (YYYY-MM-DD)",
            "minLength": 10,
            "maxLength": 10,
            "pattern": "/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/",
            "example": "2001-12-21"
        }
    },
    "properties": {
        "definations.date_fullyear": {
            "$ref": "#/definations/date_fullyear"
        },
        "definations.full_date": {
            "$ref": "#/definations/full_date"
        }
    },
    "required": [
        "definations.date_fullyear",
        "definations.full_date"
    ]
}