{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Attribute",
    "description": "An attribute card within the game.",
    "type": "object",
    "properties": {
        "_id": {
            "description": "The unique identifier for the attribute",
            "type": "integer"
        },
        "name": {
            "description": "The attributes name.",
            "type": "string"
        },
        "abbreviation": {
            "description": "The attributes 3 letter abbreviation.",
            "type": "string",
            "maxLength": 3,
            "minLength": 3
        },
        "type": {
            "description": "the type of attribute",
            "type": "string",
            "enum": [
                "Goalkeeper",
                "Defence",
                "Attack",
                "Generic"
            ]
        },
        "description": {
            "description": "The description of the attribute",
            "type": "string"
        }
    },
    "required": [
        "_id",
        "name",
        "abbreviation",
        "type",
        "description"
    ]
}