{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Organization",
    "description": "Unit hierarchy and board members",
    "type": "object",
    "properties": {
        "units": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "unitId": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9999
                    },
                    "unitOf": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9999
                    },
                    "name": {
                        "type": "string"
                    }
                },
                "additionalProperties": false,
                "required": [
                    "unitId",
                    "unitOf",
                    "name"
                ]
            }
        },
        "board": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "independent": {
                        "type": "boolean"
                    },
                    "chair": {
                        "type": "boolean"
                    }
                },
                "additionalProperties": false,
                "required": [
                    "name",
                    "independent",
                    "chair"
                ]
            }
        }
    }
}