{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "A simple address schema",
    "type": "object",
    "definitions": {
        "address1": {
            "type": "string"
        },
        "address2": {
            "type": "string"
        },
        "city": {
            "type": "string"
        },
        "postalCode": {
            "type": "string"
        },
        "state": {
            "type": "string"
        },
        "country": {
            "type": "string"
        }
    },
    "properties": {
        "address1": {
            "$ref": "#/definitions/address1"
        },
        "address2": {
            "$ref": "#/definitions/address2"
        },
        "city": {
            "$ref": "#/definitions/city"
        },
        "postalCode": {
            "$ref": "#/definitions/postalCode"
        },
        "state": {
            "$ref": "#/definitions/state"
        },
        "country": {
            "$ref": "#/definitions/country"
        }
    }
}