{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Investment Info",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "activity": {
            "$ref": "#/definitions/InvestmentActivity"
        },
        "security": {
            "$ref": "#/definitions/Security"
        },
        "transaction": {
            "$ref": "#/definitions/InvestmentTransaction"
        }
    },
    "definitions": {
        "InvestmentActivity": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "label": {
                    "type": "string"
                },
                "type": {
                    "type": "integer"
                }
            }
        },
        "Security": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "_id": {
                    "type": "integer",
                    "description": "A unique ID for Security"
                },
                "name": {
                    "type": "string"
                },
                "symbol": {
                    "type": "string"
                }
            }
        },
        "InvestmentTransaction": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "_id": {
                    "type": "integer",
                    "description": "A unique ID for InvestmentTransaction"
                },
                "price": {
                    "type": "number"
                },
                "quantity": {
                    "type": "number"
                }
            }
        }
    }
}