{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "New Customer Profile",
  "$id": "#customer/new-customer-profile",
  "type": "object",
  "properties": {
    "address": {
      "type": "string",
      "minLength": 1
    },
    "birthdate": {
      "type": "string",
      "minLength": 10,
      "maxLength": 19,
      "description": "Birth date in the format YYYY-MM-DD"
    },
    "city": {
      "type": "string",
      "minLength": 1
    },
    "country": {
      "type": "string",
      "minLength": 4
    },
    "firstname": {
      "type": "string",
      "minLength": 1
    },
    "language": {
      "type": "string",
      "minLength": 5,
      "maxLength": 6,
      "description": "Locale + Language code, e.g. en-US"
    },
    "lastname": {
      "type": "string",
      "minLength": 1
    },
    "phone": {
      "type": "string",
      "minLength": 8,
      "description": "International phone format (E.164 formatting)"
    },
    "postal_code": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "address",
    "city",
    "country",
    "firstname",
    "lastname",
    "phone",
    "postal_code"
  ]
}
