{ "group": { "has_many": { "peeps": { "type": "individual", "required": false, "description": "Who is in the group" } }, "has_one": { "master": { "type": "individual", "required": true, "description": "Who is the master of the group" } }, "group_id": { "type": "string", "multiple": false, "required": false, "description": "Identifier used to register group for scams", "restrictions": { "unique": true, "regex": "^[0-9]{2}(-?[0-9]{5})$" } }, "name": { "type": "string", "multiple": false, "required": true, "description": "The name of this group", "restrictions": { "regex": "group" } } } }