{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {},
    "id": "http://crooked-dice.co.uk/model.json",
    "properties": {
        "__version": {
            "default": "0.0.1",
            "description": "An explanation about the purpose of this instance.",
            "id": "/properties/__version",
            "title": "The __version schema",
            "type": [
                "string",
                "null"
            ]
        },
        "customization": {
            "id": "/properties/customization",
            "items": {
                "id": "/properties/customization/items",
                "properties": {
                    "subject": {
                        "default": null,
                        "description": "An explanation about the purpose of this instance.",
                        "id": "/properties/customization/items/properties/subject",
                        "title": "The subject schema",
                        "type": "null"
                    },
                    "type": {
                        "default": null,
                        "description": "An explanation about the purpose of this instance.",
                        "id": "/properties/customization/items/properties/type",
                        "title": "The type schema",
                        "type": "null"
                    },
                    "value": {
                        "default": null,
                        "description": "An explanation about the purpose of this instance.",
                        "id": "/properties/customization/items/properties/value",
                        "title": "The value schema",
                        "type": "null"
                    }
                },
                "type": [
                    "object",
                    "null"
                ]
            },
            "type": [
                "array",
                "null"
            ]
        },
        "genres": {
            "id": "/properties/genres",
            "items": {
                "description": "The genre of each model determines if it can join your cast or not. Models from a Programme Guide will have their cast\u2019s symbol here instead.",
                "enum": [
                    "Civilian",
                    "Crime",
                    "Law & Order",
                    "Military",
                    "Secret",
                    "Science",
                    "Unknown"
                ],
                "id": "/properties/genres/items",
                "title": "Genre/s",
                "type": "string"
            },
            "type": [
                "array",
                "null"
            ]
        },
        "health": {
            "default": 1,
            "description": "From 1 and up. Stars normally have 3, Co-Stars 2 and Extras 1. When a model\u2019s Health is reduced to 0 it is removed from play.",
            "id": "/properties/health",
            "maximum": 5,
            "minimum": 1,
            "title": "Health",
            "type": [
                "integer",
                "null"
            ]
        },
        "name": {
            "description": "The name of the model",
            "id": "/properties/name",
            "title": "Name",
            "type": [
                "string",
                "null"
            ]
        },
        "notes": {
            "default": "Samuel L.Ipsum\n",
            "description": "An explanation about the purpose of this instance.",
            "id": "/properties/notes",
            "title": "The notes schema",
            "type": [
                "string",
                "null"
            ]
        },
        "photo": {
            "default": null,
            "description": "An explanation about the purpose of this instance.",
            "id": "/properties/photo",
            "title": "The photo schema",
            "type": "null"
        },
        "profile": {
            "description": "Reference to the base profile",
            "id": "/properties/profile",
            "title": "Profile",
            "type": [
                "string",
                "null"
            ]
        },
        "ratings": {
            "default": 0,
            "description": "A number which represents the effectiveness and value of the model in the game.",
            "id": "/properties/ratings",
            "minimum": 0,
            "title": "Ratings",
            "type": "integer"
        },
        "role": {
            "default": "Heroic",
            "description": "Model behaviour.",
            "enum": [
                "Heroic",
                "Neutral",
                "Villain"
            ],
            "id": "/properties/role",
            "title": "Role",
            "type": [
                "string",
                "null"
            ]
        },
        "special_effects": {
            "id": "/properties/special_effects",
            "items": {
                "id": "/properties/special_effects/items",
                "properties": {
                    "description": {
                        "default": "if this model finds itself under a weapon template...\n",
                        "description": "An explanation about the purpose of this instance.",
                        "id": "/properties/special_effects/items/properties/description",
                        "title": "The description schema",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "name": {
                        "default": "Blown clear",
                        "description": "An explanation about the purpose of this instance.",
                        "id": "/properties/special_effects/items/properties/name",
                        "title": "The name schema",
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "type": [
                    "object",
                    "null"
                ]
            },
            "type": [
                "array",
                "null"
            ]
        },
        "star_quality": {
            "id": "/properties/star_quality",
            "items": {
                "id": "/properties/star_quality/items",
                "properties": {
                    "cost": {
                        "default": 2,
                        "description": "An explanation about the purpose of this instance.",
                        "id": "/properties/star_quality/items/properties/cost",
                        "title": "The cost schema",
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "description": {
                        "default": "this model can do an immediately...\n",
                        "description": "An explanation about the purpose of this instance.",
                        "id": "/properties/star_quality/items/properties/description",
                        "title": "The description schema",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "name": {
                        "default": "Burst of action",
                        "description": "An explanation about the purpose of this instance.",
                        "id": "/properties/star_quality/items/properties/name",
                        "title": "The name schema",
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "type": "object"
            },
            "type": "array"
        },
        "stats": {
            "additionalProperties": false,
            "id": "/properties/stats",
            "properties": {
                "body": {
                    "default": 0,
                    "description": "The physical strength of a model. High Body equals better Fight attacks.",
                    "id": "/properties/stats/properties/body",
                    "title": "Body",
                    "type": "integer"
                },
                "defence": {
                    "default": 0,
                    "description": "A combination of agility, size and natural toughness.",
                    "id": "/properties/stats/properties/defence",
                    "title": "Defence",
                    "type": "integer"
                },
                "fight": {
                    "default": 0,
                    "description": "How good the model is at making attacks at close range (e.g. a punch).",
                    "id": "/properties/stats/properties/fight",
                    "title": "Fight",
                    "type": "integer"
                },
                "mind": {
                    "default": 0,
                    "description": "An explanation about the purpose of this instance.",
                    "id": "/properties/stats/properties/mind",
                    "title": "Mind",
                    "type": "integer"
                },
                "shoot": {
                    "default": 0,
                    "description": "How good the model is at making ranged attacks (e.g. with a pistol).",
                    "id": "/properties/stats/properties/shoot",
                    "title": "Shoot",
                    "type": "integer"
                },
                "spirit": {
                    "default": 0,
                    "description": "A model\u2019s courage, staying power and leadership abilities.",
                    "id": "/properties/stats/properties/spirit",
                    "title": "Spirit",
                    "type": "integer"
                }
            },
            "required": [
                "shoot",
                "body",
                "defence",
                "mind",
                "fight",
                "spirit"
            ],
            "type": [
                "object",
                "null"
            ]
        },
        "type": {
            "default": "Star",
            "description": "Character promotion",
            "enum": [
                "Star",
                "Co-Star",
                "Extra",
                "Vehicle"
            ],
            "id": "/properties/type",
            "title": "Type",
            "type": [
                "string",
                "null"
            ]
        },
        "weapons": {
            "id": "/properties/weapons",
            "items": {
                "id": "/properties/weapons/items",
                "properties": {
                    "attack": {
                        "default": "Martial arts",
                        "description": "An explanation about the purpose of this instance.",
                        "id": "/properties/weapons/items/properties/attack",
                        "title": "The attack schema",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "effects": {
                        "default": "Lorem Ipsum\n",
                        "description": "An explanation about the purpose of this instance.",
                        "id": "/properties/weapons/items/properties/effects",
                        "title": "The effects schema",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "range": {
                        "default": 0,
                        "description": "An explanation about the purpose of this instance.",
                        "id": "/properties/weapons/items/properties/range",
                        "title": "The range schema",
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "strike": {
                        "default": 10,
                        "description": "An explanation about the purpose of this instance.",
                        "id": "/properties/weapons/items/properties/strike",
                        "title": "The strike schema",
                        "type": [
                            "integer",
                            "null"
                        ]
                    }
                },
                "type": [
                    "object",
                    "null"
                ]
            },
            "type": [
                "array",
                "null"
            ]
        }
    },
    "required": [
        "ratings",
        "stats",
        "name",
        "health",
        "type"
    ],
    "type": [
        "object",
        "null"
    ]
}