{
    "id": "example_schema.json",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "properties": {
        "id": {
            "type": "string",
            "title": "Identifier"
        },
        "name": {
            "type": "string",
            "title": "Name",
            "description": "A casual name for this person. [A link](http://example.org)."
        },
        "formalname": {
            "type": "string",
            "title": "Formal Name",
            "description": "A formal name for this person"
        },
        "age": {
            "type": "object",
            "title": "The person's age",
            "properties": {
                "actual": {
                    "type": "number",
                    "title": "Actual Age"
                },
                "admitted": {
                    "type": "number",
                    "title": "Admitted Age"
                }
            }
        },
        "address": {
            "$ref": "/definitions/Address",
            "title": "Address",
            "description": "Where this person lives"
        }
    },
    "definitions": {
        "Address": {
            "type": "object",
            "properties": {
                "address": {
                    "type": "string",
                    "title": "Address Details"
                },
                "postcode": {
                    "type": "string",
                    "title": "Postcode"
                },
                "country": {
                    "type": "string",
                    "title": "Country"
                }
            }
        }
    }
}
