{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "description": "A unique identifier for the address.json"
        },
        "type": {
            "type": "string",
            "description": "The json_api type for any address.json",
            "pattern": "^addresses$"
        },
        "attributes": {
            "type": "object",
            "properties": {
                "meta_attributes": {
                    "type": "object",
                    "description": "Description for meta_attributes"
                },
                "customer_account_id": {
                    "type": "number",
                    "description": "Description for customer_account_id"
                },
                "first_name": {
                    "type": "string",
                    "description": "Description for first_name"
                },
                "last_name": {
                    "type": "string",
                    "description": "Description for last_name"
                },
                "middle_names": {
                    "type": "string",
                    "description": "Description for middle_names"
                },
                "address_line_1": {
                    "type": "string",
                    "description": "Description for address_line_1"
                },
                "address_line_2": {
                    "type": "string",
                    "description": "Description for address_line_2"
                },
                "address_line_3": {
                    "type": "string",
                    "description": "Description for address_line_3"
                },
                "city": {
                    "type": "string",
                    "description": "Description for city"
                },
                "state": {
                    "type": "string",
                    "description": "Description for state"
                },
                "postcode": {
                    "type": "string",
                    "description": "Description for postcode"
                },
                "country": {
                    "type": "string",
                    "description": "Description for country"
                },
                "preferred_shipping": {
                    "type": "boolean",
                    "description": "Description for preferred_shipping"
                },
                "preferred_billing": {
                    "type": "boolean",
                    "description": "Description for preferred_billing"
                }
            }
        },
        "relationships": {
            "type": "object",
            "properties": {
                "customer_account": {
                    "type": "object",
                    "properties": {
                        "links": {
                            "type": "object",
                            "properties": {
                                "self": {
                                    "type": "string"
                                },
                                "related": {
                                    "type": "string"
                                }
                            },
                            "additionalProperties": false
                        },
                        "data": {
                            "type": "object",
                            "description": "The id and type form a pointer into the 'included' top level document property",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "type": {
                                    "type": "string"
                                }
                            },
                            "additionalProperties": false
                        },
                        "meta": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                }
            }
        },
        "links": {
            "type": "object",
            "properties": {
                "self": {
                    "type": "string"
                }
            },
            "additionalProperties": false
        },
        "meta": {
            "type": "object",
            "additionalProperties": false
        }
    },
    "definitions": {}
}