All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eedm.constituent-organizations.v12.0.constituent-organizations.json Maven / Gradle / Ivy

{
  "title" : "Constituent Organizations",
  "description" : "An organization that is of interest to an advancement system, may or may not be part of the standard organizations entity.",
  "type" : "object",
  "properties" : {
    "metadata" : {
      "$ref" : "resource:/eedm/metadata.json"
    },
    "id" : {
      "title" : "ID",
      "description" : "The global identifier of the constituent organization.",
      "type" : "string",
      "format" : "guid",
      "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
    },
    "organization" : {
      "title" : "Organization",
      "description" : "An optional reference to link a constituent organization to the common organization entity.",
      "oneOf" : [ {
        "type" : "object",
        "properties" : {
          "id" : {
            "title" : "ID",
            "description" : "The global identifier for the Organization.",
            "type" : "string",
            "format" : "guid",
            "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
          }
        },
        "links" : [ {
          "rel" : "self",
          "href" : "/organizations/{id}",
          "targetSchema" : {
            "$ref" : "organizations.json#"
          }
        } ],
        "additionalProperties" : false,
        "required" : [ "id" ]
      }, {
        "type" : "object",
        "maxProperties" : 0
      } ]
    },
    "names" : {
      "title" : "Names",
      "description" : "The names associated with an organizations, specified by type (for example, \"legal\" or \"birth\").",
      "type" : "object",
      "properties" : {
        "organizationNames" : {
          "title" : "Organization Names",
          "description" : "The names commonly used by the organization.",
          "type" : "array",
          "minItems" : 1,
          "items" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "title" : "type",
                "description" : "The type of a organization's name being defined. For example, a 'Primary' name.",
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "id" : {
                      "title" : "ID",
                      "description" : "The global identifier for the type.",
                      "type" : "string",
                      "format" : "guid",
                      "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
                    }
                  },
                  "links" : [ {
                    "rel" : "self",
                    "href" : "/constituent-name-types/{id}",
                    "targetSchema" : {
                      "$ref" : "constituent-name-types.json#"
                    }
                  } ],
                  "additionalProperties" : false,
                  "required" : [ "id" ]
                }, {
                  "type" : "object",
                  "maxProperties" : 0
                } ]
              },
              "name" : {
                "title" : "Name",
                "description" : "The organization's name.",
                "type" : "string",
                "minLength" : 1
              },
              "preference" : {
                "title" : "Name Preference",
                "description" : "Indicates the preferred name for the organization. Only one name should be preferred per organization.",
                "oneOf" : [ {
                  "type" : "string",
                  "enum" : [ "primary" ]
                }, {
                  "type" : "string",
                  "maxLength" : 0
                } ]
              }
            },
            "additionalProperties" : false,
            "required" : [ "name" ]
          }
        },
        "formattedNames" : {
          "title" : "Formatted Names",
          "description" : "The formatted names associated with the constituent.",
          "type" : "array",
          "items" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "title" : "Type",
                "description" : "The type of the formatted name.",
                "type" : "object",
                "properties" : {
                  "id" : {
                    "title" : "ID",
                    "description" : "The global identifier for the Type.",
                    "type" : "string",
                    "format" : "guid",
                    "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
                  }
                },
                "links" : [ {
                  "rel" : "self",
                  "href" : "/formatted-name-types/{id}",
                  "targetSchema" : {
                    "$ref" : "formatted-name-types.json#"
                  }
                } ],
                "additionalProperties" : false,
                "required" : [ "id" ]
              },
              "forUseBy" : {
                "title" : "For Use By",
                "description" : "The person for which the formatted name is always used when addressing the constituent organization.",
                "type" : "object",
                "properties" : {
                  "id" : {
                    "title" : "ID",
                    "description" : "The global identifier for the For Use By.",
                    "type" : "string",
                    "format" : "guid",
                    "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
                  }
                },
                "links" : [ {
                  "rel" : "self",
                  "href" : "/constituent-persons/{id}",
                  "targetSchema" : {
                    "$ref" : "constituent-persons.json#"
                  }
                } ],
                "additionalProperties" : false,
                "required" : [ "id" ]
              },
              "name" : {
                "title" : "Name",
                "description" : "A formatted name for the constituent.",
                "type" : "string",
                "minLength" : 1
              }
            },
            "additionalProperties" : false,
            "required" : [ "type", "name" ]
          }
        }
      },
      "additionalProperties" : false,
      "required" : [ "organizationNames" ]
    },
    "description" : {
      "title" : "Description",
      "description" : "The description of the organization",
      "type" : "string"
    },
    "status" : {
      "title" : "Status",
      "description" : "The status of the organization.",
      "oneOf" : [ {
        "type" : "object",
        "properties" : {
          "id" : {
            "title" : "ID",
            "description" : "The global identifier for the Status.",
            "type" : "string",
            "format" : "guid",
            "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
          }
        },
        "links" : [ {
          "rel" : "self",
          "href" : "/advancement-statuses/{id}",
          "targetSchema" : {
            "$ref" : "advancement-statuses.json#"
          }
        } ],
        "additionalProperties" : false,
        "required" : [ "id" ]
      }, {
        "type" : "object",
        "maxProperties" : 0
      } ]
    },
    "established" : {
      "title" : "Established",
      "description" : "The year the organization was established (founded or incorporated).",
      "oneOf" : [ {
        "type" : "string",
        "format" : "year",
        "pattern" : "^([1-9][0-9]*)?[0-9]{4}$"
      }, {
        "type" : "string",
        "maxLength" : 0
      } ]
    },
    "preferredLanguage" : {
      "title" : "Preferred Language",
      "description" : "The preferred language of the organization.",
      "oneOf" : [ {
        "type" : "object",
        "properties" : {
          "id" : {
            "title" : "ID",
            "description" : "The global identifier for the Preferred Language.",
            "type" : "string",
            "format" : "guid",
            "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
          }
        },
        "links" : [ {
          "rel" : "self",
          "href" : "/constituent-languages/{id}",
          "targetSchema" : {
            "$ref" : "constituent-languages.json#"
          }
        } ],
        "additionalProperties" : false,
        "required" : [ "id" ]
      }, {
        "type" : "object",
        "maxProperties" : 0
      } ]
    },
    "parentOrganization" : {
      "title" : "Parent Organization",
      "description" : "The parent organization",
      "oneOf" : [ {
        "type" : "object",
        "properties" : {
          "id" : {
            "title" : "ID",
            "description" : "The global identifier for the Parent Organization.",
            "type" : "string",
            "format" : "guid",
            "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
          }
        },
        "links" : [ {
          "rel" : "self",
          "href" : "/constituent-organizations/{id}",
          "targetSchema" : {
            "$ref" : "constituent-organizations.json#"
          }
        } ],
        "additionalProperties" : false,
        "required" : [ "id" ]
      }, {
        "type" : "object",
        "maxProperties" : 0
      } ]
    },
    "primaryContact" : {
      "title" : "Primary Contact",
      "description" : "The primary contact for the organization.",
      "oneOf" : [ {
        "type" : "object",
        "properties" : {
          "id" : {
            "title" : "ID",
            "description" : "The global identifier for the Primary Contact.",
            "type" : "string",
            "format" : "guid",
            "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
          }
        },
        "links" : [ {
          "rel" : "self",
          "href" : "/constituent-persons/{id}",
          "targetSchema" : {
            "$ref" : "constituent-persons.json#"
          }
        } ],
        "additionalProperties" : false,
        "required" : [ "id" ]
      }, {
        "type" : "object",
        "maxProperties" : 0
      } ]
    },
    "matchingProgram" : {
      "title" : "Matching Program",
      "description" : "An indicator specifying if the organization has a matching gift program.",
      "oneOf" : [ {
        "type" : "string",
        "enum" : [ "available" ]
      }, {
        "type" : "string",
        "maxLength" : 0
      } ]
    },
    "matchingPolicyHolder" : {
      "title" : "Matching Policy Holder",
      "description" : "The organization that makes matching gift contributions for the organization.",
      "oneOf" : [ {
        "type" : "object",
        "properties" : {
          "id" : {
            "title" : "ID",
            "description" : "The global identifier for the Matching Policy Holder.",
            "type" : "string",
            "format" : "guid",
            "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
          }
        },
        "links" : [ {
          "rel" : "self",
          "href" : "/constituent-organizations/{id}",
          "targetSchema" : {
            "$ref" : "constituent-organizations.json#"
          }
        } ],
        "additionalProperties" : false,
        "required" : [ "id" ]
      }, {
        "type" : "object",
        "maxProperties" : 0
      } ]
    },
    "webSite" : {
      "title" : "Web Site",
      "description" : "The organization's main web site.",
      "type" : "string",
      "format" : "uri"
    },
    "numberOfEmployees" : {
      "title" : "Number Of Employees",
      "description" : "The number of employees (members) of the organization.",
      "oneOf" : [ {
        "type" : "number",
        "minimum" : 0,
        "format" : "positiveInteger"
      }, {
        "type" : "null"
      } ]
    },
    "annualRevenue" : {
      "title" : "Annual Revenue",
      "description" : "The annual revenue of the organization",
      "oneOf" : [ {
        "type" : "object",
        "format" : "currency",
        "properties" : {
          "value" : {
            "title" : "Value",
            "description" : "The monetary value",
            "type" : "number"
          },
          "currency" : {
            "title" : "Currency",
            "description" : "The ISO 4217 currency code",
            "enum" : [ "AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BRL", "BSD", "BTN", "BWP", "BYR", "BZD", "CAD", "CDF", "CHF", "CLP", "CNY", "COP", "CRC", "CUC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRO", "MUR", "MVR", "MWK", "MXN", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLL", "SOS", "SRD", "SSP", "STD", "SVC", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW", "ZWL" ],
            "type" : "string"
          }
        },
        "additionalProperties" : false,
        "required" : [ "value", "currency" ]
      }, {
        "type" : "object",
        "maxProperties" : 0
      } ]
    },
    "affiliation" : {
      "title" : "Affiliation",
      "description" : "The constituents relationship to the institution.",
      "type" : "array",
      "items" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "title" : "Type",
            "description" : "The type of the affiliation of the constituent to the institution.",
            "type" : "object",
            "properties" : {
              "id" : {
                "title" : "ID",
                "description" : "The global identifier for the Type.",
                "type" : "string",
                "format" : "guid",
                "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
              }
            },
            "links" : [ {
              "rel" : "self",
              "href" : "/constituent-types/{id}",
              "targetSchema" : {
                "$ref" : "constituent-types.json#"
              }
            } ],
            "additionalProperties" : false,
            "required" : [ "id" ]
          },
          "preference" : {
            "title" : "Preference",
            "description" : "The preference of this affiliation over all others for this constituent.",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "primary" ]
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "startOn" : {
            "title" : "Start On",
            "description" : "The first date when this affiliation is valid.",
            "oneOf" : [ {
              "type" : "string",
              "format" : "date-time",
              "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?(Z|[+-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])?$"
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "endOn" : {
            "title" : "End On",
            "description" : "The last date when this affiliation is valid.",
            "oneOf" : [ {
              "type" : "string",
              "format" : "date-time",
              "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?(Z|[+-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])?$"
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          }
        },
        "additionalProperties" : false,
        "required" : [ "type" ]
      }
    },
    "industry" : {
      "title" : "Industry",
      "description" : "The industry classification associated with the organization",
      "type" : "array",
      "items" : {
        "title" : "Industry",
        "description" : "The industry classification associated with the organization",
        "type" : "object",
        "properties" : {
          "id" : {
            "title" : "ID",
            "description" : "The global identifier for the Industry.",
            "type" : "string",
            "format" : "guid",
            "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
          }
        },
        "links" : [ {
          "rel" : "self",
          "href" : "/industry-classifications/{id}",
          "targetSchema" : {
            "$ref" : "industry-classifications.json#"
          }
        } ],
        "additionalProperties" : false,
        "required" : [ "id" ]
      }
    },
    "credentials" : {
      "title" : "Credentials",
      "description" : "Information that identifies an organization to a system such as a network or computer.",
      "type" : "array",
      "items" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "title" : "Type",
            "description" : "A user defined list of credential types.",
            "type" : "object",
            "properties" : {
              "id" : {
                "title" : "ID",
                "description" : "The global identifier for the Type.",
                "type" : "string",
                "format" : "guid",
                "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
              }
            },
            "links" : [ {
              "rel" : "self",
              "href" : "/constituent-credential-types/{id}",
              "targetSchema" : {
                "$ref" : "constituent-credential-types.json#"
              }
            } ],
            "additionalProperties" : false,
            "required" : [ "id" ]
          },
          "value" : {
            "title" : "Value",
            "description" : "The current value of the credential.",
            "type" : "string"
          }
        },
        "additionalProperties" : false,
        "required" : [ "type", "value" ]
      }
    },
    "addresses" : {
      "title" : "Addresses",
      "description" : "The physical locations where the organization resides or may be contacted by mail.",
      "type" : "array",
      "items" : {
        "type" : "object",
        "properties" : {
          "address" : {
            "title" : "Address",
            "description" : "The associated physical address.",
            "oneOf" : [ {
              "title" : "Address",
              "description" : "A reference to the associated physical address.",
              "type" : "object",
              "properties" : {
                "id" : {
                  "title" : "ID",
                  "description" : "The global identifier for the Address.",
                  "type" : "string",
                  "format" : "guid",
                  "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
                }
              },
              "links" : [ {
                "rel" : "self",
                "href" : "/constituent-addresses/{id}",
                "targetSchema" : {
                  "$ref" : "constituent-addresses.json#"
                }
              } ],
              "additionalProperties" : false,
              "required" : [ "id" ]
            }, {
              "title" : "Address Detail",
              "description" : "The associated physical address detail information. The address detail should only be provided when adding an address not previously identified.",
              "type" : "object",
              "properties" : {
                "addressLines" : {
                  "title" : "Address",
                  "description" : "The address lines of the location, such as a street address, post office box number, or city, region, and postal code.",
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                },
                "place" : {
                  "title" : "Place",
                  "description" : "A country specific postal region.  Postal regions are expressed as a hierarchy of country, region, and sub-region, and as a locality with postal automation codes",
                  "oneOf" : [ {
                    "type" : "object",
                    "format" : "place",
                    "properties" : {
                      "country" : {
                        "title" : "Country",
                        "description" : "The country specific postal region definition.",
                        "oneOf" : [ {
                          "title" : "Australia",
                          "description" : "The postal region definition for Australia.",
                          "type" : "object",
                          "properties" : {
                            "code" : {
                              "title" : "Code",
                              "description" : "The ISO 3166-1 alpha-3 country code for Australia.",
                              "enum" : [ "AUS" ],
                              "type" : "string"
                            },
                            "title" : {
                              "title" : "Country",
                              "description" : "The name of the country, as used in everyday speech.",
                              "type" : "string"
                            },
                            "postalTitle" : {
                              "title" : "Postal Country",
                              "description" : "The name of the country when mail is being addressed from an international sender.",
                              "oneOf" : [ {
                                "type" : "string",
                                "enum" : [ "AUSTRALIA" ]
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            },
                            "region" : {
                              "title" : "Region",
                              "description" : "A region within the country",
                              "oneOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-2 code used to identify the region within the country.",
                                    "enum" : [ "AU-NSW", "AU-ACT", "AU-VIC", "AU-QLD", "AU-SA", "AU-WA", "AU-TAS", "AU-NT" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Title",
                                    "description" : "The full name of the region",
                                    "type" : "string"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            },
                            "subRegion" : {
                              "title" : "Subregion",
                              "description" : "A subregion within the country and region",
                              "type" : "object",
                              "properties" : {
                                "code" : {
                                  "title" : "Code",
                                  "description" : "A code that may be used to identify the sub-region. This should be the ISO 3166-2 code, if one exists, otherwise, a user defined code may be optionally specified.",
                                  "type" : "string"
                                },
                                "title" : {
                                  "title" : "Title",
                                  "description" : "The name of a subregion",
                                  "type" : "string"
                                }
                              },
                              "additionalProperties" : false
                            },
                            "locality" : {
                              "title" : "city",
                              "description" : "The name of the city or town.",
                              "type" : "string"
                            },
                            "postalCode" : {
                              "title" : "Postal Code",
                              "description" : "The mailing postal code.",
                              "oneOf" : [ {
                                "type" : "string",
                                "pattern" : "^(0[289][0-9]{2})|([1345689][0-9]{3})|(2[0-8][0-9]{2})|(290[0-9])|(291[0-4])|(7[0-4][0-9]{2})|(7[8-9][0-9]{2})$"
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "code" ]
                        }, {
                          "title" : "Brazil",
                          "description" : "The postal region definition for Brazil.",
                          "type" : "object",
                          "properties" : {
                            "code" : {
                              "title" : "Code",
                              "description" : "The ISO 3166-1 alpha-3 country code for Brazil.",
                              "enum" : [ "BRA" ],
                              "type" : "string"
                            },
                            "title" : {
                              "title" : "Country",
                              "description" : "The name of the country, as used in everyday speech.",
                              "type" : "string"
                            },
                            "postalTitle" : {
                              "title" : "Postal Country",
                              "description" : "The name of the country when mail is being addressed from an international sender.",
                              "oneOf" : [ {
                                "type" : "string",
                                "enum" : [ "BRAZIL" ]
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            },
                            "region" : {
                              "title" : "Region",
                              "description" : "A region within the country",
                              "oneOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-2 code used to identify the region within the country.",
                                    "enum" : [ "BR-AC", "BR-AL", "BR-AM", "BR-AP", "BR-BA", "BR-CE", "BR-DF", "BR-ES", "BR-GO", "BR-MA", "BR-MG", "BR-MS", "BR-MT", "BR-PA", "BR-PB", "BR-PE", "BR-PI", "BR-PR", "BR-RJ", "BR-RN", "BR-RO", "BR-RR", "BR-RS", "BR-SC", "BR-SE", "BR-SP", "BR-TO" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Title",
                                    "description" : "The full name of the region",
                                    "type" : "string"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            },
                            "subRegion" : {
                              "title" : "Subregion",
                              "description" : "A subregion within the country and region",
                              "type" : "object",
                              "properties" : {
                                "code" : {
                                  "title" : "Code",
                                  "description" : "A code that may be used to identify the sub-region. This should be the ISO 3166-2 code, if one exists, otherwise, a user defined code may be optionally specified.",
                                  "type" : "string"
                                },
                                "title" : {
                                  "title" : "Title",
                                  "description" : "The name of a subregion",
                                  "type" : "string"
                                }
                              },
                              "additionalProperties" : false
                            },
                            "locality" : {
                              "title" : "city",
                              "description" : "The name of the city or town.",
                              "type" : "string"
                            },
                            "postalCode" : {
                              "title" : "Postal Code",
                              "description" : "The mailing postal code.",
                              "oneOf" : [ {
                                "type" : "string",
                                "pattern" : "^\\d{5}\\-\\d{3}$"
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "code" ]
                        }, {
                          "title" : "Canada",
                          "description" : "The postal region definition for Canada.",
                          "type" : "object",
                          "properties" : {
                            "code" : {
                              "title" : "Code",
                              "description" : "The ISO 3166-1 alpha-3 country code for Canada.",
                              "enum" : [ "CAN" ],
                              "type" : "string"
                            },
                            "title" : {
                              "title" : "Country",
                              "description" : "The name of the country, as used in everyday speech.",
                              "type" : "string"
                            },
                            "postalTitle" : {
                              "title" : "Postal Country",
                              "description" : "The name of the country when mail is being addressed from an international sender.",
                              "oneOf" : [ {
                                "type" : "string",
                                "enum" : [ "CANADA" ]
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            },
                            "region" : {
                              "title" : "Region",
                              "description" : "A region within the country",
                              "oneOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-2 code used to identify the region within the country.",
                                    "enum" : [ "CA-AB", "CA-BC", "CA-MB", "CA-NB", "CA-NL", "CA-NS", "CA-NT", "CA-NU", "CA-ON", "CA-PE", "CA-QC", "CA-SK", "CA-YT" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Title",
                                    "description" : "The full name of the region",
                                    "type" : "string"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            },
                            "subRegion" : {
                              "title" : "Subregion",
                              "description" : "A subregion within the country and region",
                              "type" : "object",
                              "properties" : {
                                "code" : {
                                  "title" : "Code",
                                  "description" : "A code that may be used to identify the sub-region. This should be the ISO 3166-2 code, if one exists, otherwise, a user defined code may be optionally specified.",
                                  "type" : "string"
                                },
                                "title" : {
                                  "title" : "Title",
                                  "description" : "The name of a subregion",
                                  "type" : "string"
                                }
                              },
                              "additionalProperties" : false
                            },
                            "locality" : {
                              "title" : "city",
                              "description" : "The name of the city or town.",
                              "type" : "string"
                            },
                            "postalCode" : {
                              "title" : "Postal Code",
                              "description" : "The mailing postal code.",
                              "oneOf" : [ {
                                "type" : "string",
                                "pattern" : "^(?!.*[DFIOQU])[A-VXY][0-9][A-Z] ?[0-9][A-Z][0-9]$"
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "code" ]
                        }, {
                          "title" : "Mexico",
                          "description" : "The postal region definition for Mexico.",
                          "type" : "object",
                          "properties" : {
                            "code" : {
                              "title" : "Code",
                              "description" : "The ISO 3166-1 alpha-3 country code for Mexico.",
                              "enum" : [ "MEX" ],
                              "type" : "string"
                            },
                            "title" : {
                              "title" : "Country",
                              "description" : "The name of the country, as used in everyday speech.",
                              "type" : "string"
                            },
                            "postalTitle" : {
                              "title" : "Postal Country",
                              "description" : "The name of the country when mail is being addressed from an international sender.",
                              "oneOf" : [ {
                                "type" : "string",
                                "enum" : [ "MEXICO" ]
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            },
                            "region" : {
                              "title" : "Region",
                              "description" : "A region within the country",
                              "oneOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-2 code used to identify the region within the country.",
                                    "enum" : [ "MX-AGU", "MX-BCN", "MX-BCS", "MX-CAM", "MX-COA", "MX-COL", "MX-CHP", "MX-CHH", "MX-DIF", "MX-DUR", "MX-GUA", "MX-GRO", "MX-HID", "MX-JAL", "MX-MEX", "MX-MIC", "MX-MOR", "MX-NAY", "MX-NLE", "MX-OAX", "MX-PUE", "MX-QUE", "MX-ROO", "MX-SLP", "MX-SIN", "MX-SON", "MX-TAB", "MX-TAM", "MX-TLA", "MX-VER", "MX-YUC", "MX-ZAC" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Title",
                                    "description" : "The full name of the region",
                                    "type" : "string"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            },
                            "subRegion" : {
                              "title" : "Subregion",
                              "description" : "A subregion within the country and region",
                              "type" : "object",
                              "properties" : {
                                "code" : {
                                  "title" : "Code",
                                  "description" : "A code that may be used to identify the sub-region. This should be the ISO 3166-2 code, if one exists, otherwise, a user defined code may be optionally specified.",
                                  "type" : "string"
                                },
                                "title" : {
                                  "title" : "Title",
                                  "description" : "The name of a subregion",
                                  "type" : "string"
                                }
                              },
                              "additionalProperties" : false
                            },
                            "locality" : {
                              "title" : "city",
                              "description" : "The name of the city or town.",
                              "type" : "string"
                            },
                            "postalCode" : {
                              "title" : "Postal Code",
                              "description" : "The mailing postal code.",
                              "oneOf" : [ {
                                "type" : "string",
                                "pattern" : "^\\A\\d{5,5}\\Z$"
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "code" ]
                        }, {
                          "title" : "Netherlands",
                          "description" : "The postal region definition for the Netherlands.",
                          "type" : "object",
                          "properties" : {
                            "code" : {
                              "title" : "Code",
                              "description" : "The ISO 3166-1 alpha-3 country code for the Netherlands.",
                              "enum" : [ "NLD" ],
                              "type" : "string"
                            },
                            "title" : {
                              "title" : "Country",
                              "description" : "The name of the country, as used in everyday speech.",
                              "type" : "string"
                            },
                            "postalTitle" : {
                              "title" : "Postal Country",
                              "description" : "The name of the country when mail is being addressed from an international sender.",
                              "oneOf" : [ {
                                "type" : "string",
                                "enum" : [ "NETHERLANDS" ]
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            },
                            "region" : {
                              "title" : "Region",
                              "description" : "A region within the country",
                              "oneOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-2 code used to identify the region within the country.",
                                    "enum" : [ "NL-DR", "NL-FL", "NL-FR", "NL-GE", "NL-GR", "NL-LI", "NL-NB", "NL-NH", "NL-OV", "NL-UT", "NL-ZE", "NL-ZH" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Title",
                                    "description" : "The full name of the region",
                                    "type" : "string"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            },
                            "subRegion" : {
                              "title" : "Subregion",
                              "description" : "A subregion within the country and region",
                              "type" : "object",
                              "properties" : {
                                "code" : {
                                  "title" : "Code",
                                  "description" : "A code that may be used to identify the sub-region. This should be the ISO 3166-2 code, if one exists, otherwise, a user defined code may be optionally specified.",
                                  "type" : "string"
                                },
                                "title" : {
                                  "title" : "Title",
                                  "description" : "The name of a subregion",
                                  "type" : "string"
                                }
                              },
                              "additionalProperties" : false
                            },
                            "locality" : {
                              "title" : "city",
                              "description" : "The name of the city or town.",
                              "type" : "string"
                            },
                            "postalCode" : {
                              "title" : "Postal Code",
                              "description" : "The mailing postal code.",
                              "oneOf" : [ {
                                "type" : "string",
                                "pattern" : "^(NL-)?(\\d{4})\\s*([A-Z]{2})$"
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "code" ]
                        }, {
                          "title" : "United Kingdom of Great Britain and Northern Ireland",
                          "description" : "The postal region definition for the United Kingdom of Great Britain and Northern Ireland.",
                          "type" : "object",
                          "properties" : {
                            "code" : {
                              "title" : "Code",
                              "description" : "The ISO 3166-1 alpha-3 country code for the United Kingdom of Great Britain and Northern Ireland.",
                              "enum" : [ "GBR" ],
                              "type" : "string"
                            },
                            "title" : {
                              "title" : "Country",
                              "description" : "The name of the country, as used in everyday speech.",
                              "type" : "string"
                            },
                            "postalTitle" : {
                              "title" : "Postal Country",
                              "description" : "The name of the country when mail is being addressed from an international sender.",
                              "oneOf" : [ {
                                "type" : "string",
                                "enum" : [ "UNITED KINGDOM OF GREAT BRITAIN AND NORTHERN IRELAND" ]
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            },
                            "region" : {
                              "title" : "Region",
                              "description" : "A region within the country",
                              "oneOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-2 code used to identify the region within the country.",
                                    "enum" : [ "GB-ENG", "GB-NIR", "GB-SCT", "GB-WLS" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Title",
                                    "description" : "The name of a subregion",
                                    "type" : "string"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            },
                            "subRegion" : {
                              "title" : "Subregion",
                              "description" : "A subregion within the country and region",
                              "oneOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-2 code used to identify the sub-region within the country.",
                                    "enum" : [ "GB-BAS", "GB-BBD", "GB-BDF", "GB-BDG", "GB-BEN", "GB-BEX", "GB-BIR", "GB-BKM", "GB-BMH", "GB-BNE", "GB-BNH", "GB-BNS", "GB-BOL", "GB-BPL", "GB-BRC", "GB-BRD", "GB-BRY", "GB-BST", "GB-BUR", "GB-CAM", "GB-CBF", "GB-CHE", "GB-CHW", "GB-CLD", "GB-CMA", "GB-CMD", "GB-CON", "GB-COV", "GB-CRY", "GB-DAL", "GB-DBY", "GB-DER", "GB-DEV", "GB-DNC", "GB-DOR", "GB-DUD", "GB-DUR", "GB-EAL", "GB-ENF", "GB-ERY", "GB-ESS", "GB-ESX", "GB-GAT", "GB-GLS", "GB-GRE", "GB-HAL", "GB-HAM", "GB-HAV", "GB-HCK", "GB-HEF", "GB-HIL", "GB-HMF", "GB-HNS", "GB-HPL", "GB-HRT", "GB-HRW", "GB-HRY", "GB-IOS", "GB-IOW", "GB-ISL", "GB-KEC", "GB-KEN", "GB-KHL", "GB-KIR", "GB-KTT", "GB-KWL", "GB-LAN", "GB-LBH", "GB-LCE", "GB-LDS", "GB-LEC", "GB-LEW", "GB-LIN", "GB-LIV", "GB-LND", "GB-LUT", "GB-MAN", "GB-MDB", "GB-MDW", "GB-MIK", "GB-MRT", "GB-NBL", "GB-NEL", "GB-NET", "GB-NFK", "GB-NGM", "GB-NLN", "GB-NSM", "GB-NTH", "GB-NTT", "GB-NTY", "GB-NWM", "GB-NYK", "GB-OLD", "GB-OXF", "GB-PLY", "GB-POL", "GB-POR", "GB-PTE", "GB-RCC", "GB-RCH", "GB-RDB", "GB-RDG", "GB-RIC", "GB-ROT", "GB-RUT", "GB-SAW", "GB-SFK", "GB-SFT", "GB-SGC", "GB-SHF", "GB-SHN", "GB-SHR", "GB-SKP", "GB-SLF", "GB-SLG", "GB-SND", "GB-SOL", "GB-SOM", "GB-SOS", "GB-SRY", "GB-STE", "GB-STH", "GB-STN", "GB-STS", "GB-STT", "GB-STY", "GB-SWD", "GB-SWK", "GB-TAM", "GB-TFW", "GB-THR", "GB-TOB", "GB-TRF", "GB-TWH", "GB-WAR", "GB-WBK", "GB-WFT", "GB-WGN", "GB-WIL", "GB-WKF", "GB-WLL", "GB-WLV", "GB-WND", "GB-WNM", "GB-WOK", "GB-WOR", "GB-WRL", "GB-WRT", "GB-WSM", "GB-WSX", "GB-YOR", "GB-ABC", "GB-AND", "GB-ANN", "GB-BFS", "GB-CCG", "GB-DRS", "GB-FMO", "GB-LBC", "GB-MEA", "GB-MUL", "GB-NMD", "GB-ABD", "GB-ABE", "GB-AGB", "GB-ANS", "GB-CLK", "GB-DGY", "GB-DND", "GB-EAY", "GB-EDH", "GB-EDU", "GB-ELN", "GB-ELS", "GB-ERW", "GB-FAL", "GB-FIF", "GB-GLG", "GB-HLD", "GB-IVC", "GB-MLN", "GB-MRY", "GB-NAY", "GB-NLK", "GB-ORK", "GB-PKN", "GB-RFW", "GB-SAY", "GB-SCB", "GB-SLK", "GB-STG", "GB-WDU", "GB-WLN", "GB-ZET", "GB-AGY", "GB-BGE", "GB-BGW", "GB-CAY", "GB-CGN", "GB-CMN", "GB-CRF", "GB-CWY", "GB-DEN", "GB-FLN", "GB-GWN", "GB-MON", "GB-MTY", "GB-NTL", "GB-NWP", "GB-PEM", "GB-POW", "GB-RCT", "GB-SWA", "GB-TOF", "GB-VGL", "GB-WRX" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Title",
                                    "description" : "The full name of the region",
                                    "type" : "string"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            },
                            "locality" : {
                              "title" : "city",
                              "description" : "The name of the city or town.",
                              "type" : "string"
                            },
                            "postalCode" : {
                              "title" : "Postal Code",
                              "description" : "The mailing postal code.",
                              "oneOf" : [ {
                                "type" : "string",
                                "pattern" : "^(GIR 0AA)|((([A-Z-[QVX]][0-9][0-9]?)|(([A-Z-[QVX]][A-Z-[IJZ]][0-9][0-9]?)|(([A-Z-[QVX]][0-9][A-HJKPSTUW])|([A-Z-[QVX]][A-Z-[IJZ]][0-9][ABEHMNPRVWXY])))) [0-9][A-Z-[CIKMOV]]{2})$"
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "code" ]
                        }, {
                          "title" : "United States of America",
                          "description" : "The postal region definition for the United States of America.",
                          "type" : "object",
                          "properties" : {
                            "code" : {
                              "title" : "Code",
                              "description" : "The ISO 3166-1 alpha-3 country code the United States of America.",
                              "enum" : [ "USA" ],
                              "type" : "string"
                            },
                            "title" : {
                              "title" : "Country",
                              "description" : "The name of the country, as used in everyday speech.",
                              "type" : "string"
                            },
                            "postalTitle" : {
                              "title" : "Postal Country",
                              "description" : "The name of the country when mail is being addressed from an international sender.",
                              "oneOf" : [ {
                                "type" : "string",
                                "enum" : [ "UNITED STATES OF AMERICA" ]
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            },
                            "region" : {
                              "title" : "Region",
                              "description" : "A region within the country",
                              "oneOf" : [ {
                                "type" : "object",
                                "properties" : {
                                  "code" : {
                                    "title" : "Code",
                                    "description" : "The ISO 3166-2 code used to identify the region within the country, if it exists, or the postal code for the region.",
                                    "enum" : [ "US-AL", "US-AK", "US-AZ", "US-AR", "US-CA", "US-CO", "US-CT", "US-DE", "US-DC", "US-FL", "US-GA", "US-HI", "US-ID", "US-IL", "US-IN", "US-IA", "US-KS", "US-KY", "US-LA", "US-ME", "US-MD", "US-MA", "US-MI", "US-MN", "US-MS", "US-MO", "US-MT", "US-NE", "US-NV", "US-NH", "US-NJ", "US-NM", "US-NY", "US-NC", "US-ND", "US-OH", "US-OK", "US-OR", "US-PA", "US-RI", "US-SC", "US-SD", "US-TN", "US-TX", "US-UT", "US-VT", "US-VA", "US-WA", "US-WV", "US-WI", "US-WY", "US-AS", "US-GU", "US-MP", "US-PR", "US-UM", "US-VI", "US-FM", "US-MH", "US-PW", "US-AA", "US-AE", "US-AP" ],
                                    "type" : "string"
                                  },
                                  "title" : {
                                    "title" : "Title",
                                    "description" : "The full name of the region",
                                    "type" : "string"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "code" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            },
                            "subRegion" : {
                              "title" : "Subregion",
                              "description" : "A subregion within the country and region",
                              "type" : "object",
                              "properties" : {
                                "code" : {
                                  "title" : "Code",
                                  "description" : "A code that may be used to identify the sub-region. This should be the ISO 3166-2 code, if one exists, otherwise, a user defined code may be optionally specified.",
                                  "type" : "string"
                                },
                                "title" : {
                                  "title" : "Title",
                                  "description" : "The name of a subregion",
                                  "type" : "string"
                                }
                              },
                              "additionalProperties" : false
                            },
                            "locality" : {
                              "title" : "city",
                              "description" : "The name of the city or town.",
                              "type" : "string"
                            },
                            "postalCode" : {
                              "title" : "Postal Code",
                              "description" : "The mailing postal code.",
                              "oneOf" : [ {
                                "type" : "string",
                                "pattern" : "^(\\d{5}(-\\d{4})?|[A-Z]\\d[A-Z] *\\d[A-Z]\\d)$"
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            },
                            "deliveryPoint" : {
                              "title" : "Delivery Point",
                              "description" : "A specific set of digits between 00 and 99 assigned to every address. When combined with the ZIP + 4 code, the delivery point provides a unique identifier for every deliverable address served by the US Postal Service.",
                              "oneOf" : [ {
                                "type" : "string",
                                "pattern" : "^[0-9][0-9]$"
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            },
                            "carrierRoute" : {
                              "title" : "Carrier Route",
                              "description" : "A subdivision of a US zipcode.",
                              "oneOf" : [ {
                                "type" : "string",
                                "pattern" : "^(C|R|P)[0-9]{3}$"
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            },
                            "correctionDigit" : {
                              "title" : "Correction Digit",
                              "description" : "A number used to check for errors in a US ZIP code, delivery point, or carrier route.",
                              "oneOf" : [ {
                                "type" : "string",
                                "pattern" : "^[0-9]$"
                              }, {
                                "type" : "string",
                                "maxLength" : 0
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "code" ]
                        }, {
                          "title" : "Generic",
                          "description" : "The postal region definition for all other counties.",
                          "type" : "object",
                          "properties" : {
                            "code" : {
                              "title" : "Code",
                              "description" : "The ISO 3166-1 alpha-3 country code.",
                              "enum" : [ "ABW", "AFG", "AGO", "AIA", "ALA", "ALB", "AND", "ARE", "ARG", "ARM", "ASM", "ATA", "ATF", "ATG", "AUT", "AZE", "BDI", "BEL", "BEN", "BES", "BFA", "BGD", "BGR", "BHR", "BHS", "BIH", "BLM", "BLR", "BLZ", "BMU", "BOL", "BRB", "BRN", "BTN", "BVT", "BWA", "CAF", "CCK", "CHE", "CHL", "CHN", "CIV", "CMR", "COD", "COG", "COK", "COL", "COM", "CPV", "CRI", "CUB", "CUW", "CXR", "CYM", "CYP", "CZE", "DEU", "DJI", "DMA", "DNK", "DOM", "DZA", "ECU", "EGY", "ERI", "ESH", "ESP", "EST", "ETH", "FIN", "FJI", "FLK", "FRA", "FRO", "FSM", "GAB", "GEO", "GGY", "GHA", "GIB", "GIN", "GLP", "GMB", "GNB", "GNQ", "GRC", "GRD", "GRL", "GTM", "GUF", "GUM", "GUY", "HKG", "HMD", "HND", "HRV", "HTI", "HUN", "IDN", "IMN", "IND", "IOT", "IRL", "IRN", "IRQ", "ISL", "ISR", "ITA", "JAM", "JEY", "JOR", "JPN", "KAZ", "KEN", "KGZ", "KHM", "KIR", "KNA", "KOR", "KWT", "LAO", "LBN", "LBR", "LBY", "LCA", "LIE", "LKA", "LSO", "LTU", "LUX", "LVA", "MAC", "MAF", "MAR", "MCO", "MDA", "MDG", "MDV", "MHL", "MKD", "MLI", "MLT", "MMR", "MNE", "MNG", "MNP", "MOZ", "MRT", "MSR", "MTQ", "MUS", "MWI", "MYS", "MYT", "NAM", "NCL", "NER", "NFK", "NGA", "NIC", "NIU", "NOR", "NPL", "NRU", "NZL", "OMN", "PAK", "PAN", "PCN", "PER", "PHL", "PLW", "PNG", "POL", "PRI", "PRK", "PRT", "PRY", "PSE", "PYF", "QAT", "REU", "ROU", "RUS", "RWA", "SAU", "SDN", "SEN", "SGP", "SGS", "SHN", "SJM", "SLB", "SLE", "SLV", "SMR", "SOM", "SPM", "SRB", "SSD", "STP", "SUR", "SVK", "SVN", "SWE", "SWZ", "SXM", "SYC", "SYR", "TCA", "TCD", "TGO", "THA", "TJK", "TKL", "TKM", "TLS", "TON", "TTO", "TUN", "TUR", "TUV", "TWN", "TZA", "UGA", "UKR", "UMI", "URY", "UZB", "VAT", "VCT", "VEN", "VGB", "VIR", "VNM", "VUT", "WLF", "WSM", "YEM", "ZAF", "ZMB", "ZWE" ],
                              "type" : "string"
                            },
                            "title" : {
                              "title" : "Country",
                              "description" : "The name of the country, as used in everyday speech.",
                              "type" : "string"
                            },
                            "postalTitle" : {
                              "title" : "Postal Country",
                              "description" : "The name of the country when mail is being addressed from an international sender.",
                              "type" : "string"
                            },
                            "region" : {
                              "title" : "Region",
                              "description" : "A region within the country",
                              "type" : "object",
                              "properties" : {
                                "code" : {
                                  "title" : "Code",
                                  "description" : "The ISO 3166-2 code used to identify the region within the country.",
                                  "type" : "string"
                                },
                                "title" : {
                                  "title" : "Title",
                                  "description" : "The full name of the region",
                                  "type" : "string"
                                }
                              },
                              "additionalProperties" : false
                            },
                            "subRegion" : {
                              "title" : "Subregion",
                              "description" : "A subregion within the country and region",
                              "type" : "object",
                              "properties" : {
                                "code" : {
                                  "title" : "Code",
                                  "description" : "A code that may be used to identify the sub-region. This should be the ISO 3166-2 code, if one exists, otherwise, a user defined code may be optionally specified.",
                                  "type" : "string"
                                },
                                "title" : {
                                  "title" : "Title",
                                  "description" : "The name of a subregion",
                                  "type" : "string"
                                }
                              },
                              "additionalProperties" : false
                            },
                            "locality" : {
                              "title" : "city",
                              "description" : "The name of the city or town.",
                              "type" : "string"
                            },
                            "postalCode" : {
                              "title" : "Postal Code",
                              "description" : "The mailing postal code.",
                              "type" : "string"
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "code" ]
                        } ]
                      }
                    },
                    "additionalProperties" : false,
                    "required" : [ "country" ]
                  }, {
                    "type" : "object",
                    "maxProperties" : 0
                  } ]
                },
                "latitude" : {
                  "title" : "Latitude",
                  "description" : "The latitude of the location of the address.",
                  "oneOf" : [ {
                    "type" : "number",
                    "minimum" : -90,
                    "maximum" : 90
                  }, {
                    "type" : "null"
                  } ]
                },
                "longitude" : {
                  "title" : "Longitude",
                  "description" : "The longitude of the location of the address.",
                  "oneOf" : [ {
                    "type" : "number",
                    "minimum" : -180,
                    "maximum" : 180
                  }, {
                    "type" : "null"
                  } ]
                },
                "geographicAreas" : {
                  "title" : "Geographic Areas",
                  "description" : "The geographic areas assigned to this location of the address.",
                  "type" : "array",
                  "items" : {
                    "title" : "Geographic Areas",
                    "description" : "The geographic areas assigned to this location of the address.",
                    "type" : "object",
                    "properties" : {
                      "id" : {
                        "title" : "ID",
                        "description" : "The global identifier for the Geographic Areas.",
                        "type" : "string",
                        "format" : "guid",
                        "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
                      }
                    },
                    "links" : [ {
                      "rel" : "self",
                      "href" : "/constituent-geographic-areas/{id}",
                      "targetSchema" : {
                        "$ref" : "constituent-geographic-areas.json#"
                      }
                    } ],
                    "additionalProperties" : false,
                    "required" : [ "id" ]
                  }
                },
                "comment" : {
                  "title" : "Comment",
                  "description" : "A comment about the address.",
                  "type" : "string"
                }
              },
              "additionalProperties" : false,
              "required" : [ "addressLines" ]
            } ]
          },
          "type" : {
            "title" : "Type",
            "description" : "A type of location for the organization. Includes a standard type (e.g. 'main', 'support') and an optional, custom type to further identify the type of location.",
            "type" : "object",
            "properties" : {
              "addressType" : {
                "title" : "Address Type",
                "description" : "A mapping to a standard type for the address",
                "enum" : [ "home", "school", "vacation", "billing", "shipping", "mailing", "business", "parent", "family", "pobox", "main", "branch", "region", "support", "matchingGifts", "other" ],
                "type" : "string"
              },
              "detail" : {
                "title" : "Detail",
                "description" : "A user defined address type.",
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "id" : {
                      "title" : "ID",
                      "description" : "The global identifier for the Detail.",
                      "type" : "string",
                      "format" : "guid",
                      "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
                    }
                  },
                  "links" : [ {
                    "rel" : "self",
                    "href" : "/address-types/{id}",
                    "targetSchema" : {
                      "$ref" : "address-types.json#"
                    }
                  } ],
                  "additionalProperties" : false,
                  "required" : [ "id" ]
                }, {
                  "type" : "object",
                  "maxProperties" : 0
                } ]
              }
            },
            "additionalProperties" : false,
            "required" : [ "addressType" ]
          },
          "status" : {
            "title" : "Status",
            "description" : "The current status of the organization's relationship to the address",
            "enum" : [ "active", "inactive" ],
            "type" : "string"
          },
          "startOn" : {
            "title" : "Start On",
            "description" : "The earliest date that this address was valid for the organization",
            "oneOf" : [ {
              "type" : "string",
              "format" : "date-time",
              "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?(Z|[+-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])?$"
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "endOn" : {
            "title" : "End On",
            "description" : "The latest date when this address was valid for the organization",
            "oneOf" : [ {
              "type" : "string",
              "format" : "date-time",
              "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?(Z|[+-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])?$"
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "preference" : {
            "title" : "Preferred Location",
            "description" : "Specifies if the address is preferred over other addresses.",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "primary" ]
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "seasonalOccupancies" : {
            "title" : "Seasonal Occupancies",
            "description" : "Seasons during the year when the address is typically occupied, expressed as repeating time periods.",
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "recurrence" : {
                  "title" : "Recurrence",
                  "description" : "The recurrence of the seasonal occupancy.",
                  "oneOf" : [ {
                    "type" : "object",
                    "format" : "recurrence",
                    "properties" : {
                      "timePeriod" : {
                        "title" : "Time Period",
                        "description" : "The period of time to be repeated.",
                        "type" : "object",
                        "properties" : {
                          "startOn" : {
                            "title" : "Start On",
                            "description" : "The beginning of the time period being repeated.",
                            "type" : "string",
                            "format" : "date-time",
                            "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?(Z|[+-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])?$"
                          },
                          "endOn" : {
                            "title" : "End On",
                            "description" : "The end of the time period being repeated.",
                            "oneOf" : [ {
                              "type" : "string",
                              "format" : "date-time",
                              "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?(Z|[+-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])?$"
                            }, {
                              "type" : "string",
                              "maxLength" : 0
                            } ]
                          }
                        },
                        "additionalProperties" : false,
                        "required" : [ "startOn" ]
                      },
                      "repeatRule" : {
                        "title" : "Repeat Rule",
                        "description" : "The rule that describes how to repeat the time period.",
                        "oneOf" : [ {
                          "title" : "Daily",
                          "description" : "Rules for repeating on a daily basis.",
                          "type" : "object",
                          "properties" : {
                            "type" : {
                              "title" : "Type",
                              "description" : "",
                              "enum" : [ "daily" ],
                              "type" : "string"
                            },
                            "interval" : {
                              "title" : "Interval",
                              "description" : "Number of days between each repetition.",
                              "oneOf" : [ {
                                "type" : "integer"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "ends" : {
                              "title" : "Ends",
                              "description" : "When to end the daily repetitions.",
                              "oneOf" : [ {
                                "title" : "One Of-1",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "repetitions" : {
                                    "title" : "Repetitions",
                                    "description" : "Number of times to repeat, then stop.",
                                    "type" : "integer"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "repetitions" ]
                              }, {
                                "title" : "One Of-2",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "date" : {
                                    "title" : "Date",
                                    "description" : "The date after which to stop repeating.",
                                    "type" : "string",
                                    "format" : "date",
                                    "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])$"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "date" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "type" ]
                        }, {
                          "title" : "Weekly",
                          "description" : "Rules for repeating on a weekly basis.",
                          "type" : "object",
                          "properties" : {
                            "type" : {
                              "title" : "Type",
                              "description" : "",
                              "enum" : [ "weekly" ],
                              "type" : "string"
                            },
                            "interval" : {
                              "title" : "Interval",
                              "description" : "Number of weeks between each repetition.",
                              "oneOf" : [ {
                                "type" : "integer"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "daysOfWeek" : {
                              "title" : "Days of Week",
                              "description" : "The days of the week on which to repeat the event.",
                              "type" : "array",
                              "items" : {
                                "enum" : [ "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday" ],
                                "type" : "string"
                              }
                            },
                            "ends" : {
                              "title" : "Ends",
                              "description" : "When to end the weekly repetitions.",
                              "oneOf" : [ {
                                "title" : "One Of-1",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "repetitions" : {
                                    "title" : "Repetitions",
                                    "description" : "Number of times to repeat, then stop.",
                                    "type" : "integer"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "repetitions" ]
                              }, {
                                "title" : "One Of-2",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "date" : {
                                    "title" : "Date",
                                    "description" : "The date after which to stop repeating.",
                                    "type" : "string",
                                    "format" : "date",
                                    "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])$"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "date" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "type" ]
                        }, {
                          "title" : "Monthly",
                          "description" : "Rules for repeating on a monthly basis.",
                          "type" : "object",
                          "properties" : {
                            "type" : {
                              "title" : "Type",
                              "description" : "",
                              "enum" : [ "monthly" ],
                              "type" : "string"
                            },
                            "interval" : {
                              "title" : "Interval",
                              "description" : "Number of months between each repetition.",
                              "oneOf" : [ {
                                "type" : "integer"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "repeatBy" : {
                              "title" : "Repeat By",
                              "description" : "How to calculate the day of the month on which to start repeating.",
                              "oneOf" : [ {
                                "title" : "One Of-1",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "dayOfMonth" : {
                                    "title" : "Day of Month",
                                    "description" : "The number of the day in the month on which to repeat. Use a positive number to count from the start of the month (e.g., 1 = first day of the month, 2 = second day of the month), and a negative number to count from the end of the month (e.g. -1 = last day of the month, -2 = second to last day of the month, etc.).",
                                    "type" : "integer"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "dayOfMonth" ]
                              }, {
                                "title" : "One Of-2",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "dayOfWeek" : {
                                    "title" : "Day of Week",
                                    "description" : "The cardinal day of the week (e.g., the first Tuesday, the last Friday, etc.) in the month on which to start repeating.",
                                    "type" : "object",
                                    "properties" : {
                                      "occurrence" : {
                                        "title" : "Occurrence",
                                        "description" : "The nth occurrence of the day of the week in the month. Use a positive number to count from the start of the month (e.g., 1 = first in the month, 2 = second in the month), and a negative number to count from the end of the month (e.g. -1 = last in the month, -2 = second from last, etc.).",
                                        "type" : "integer"
                                      },
                                      "day" : {
                                        "title" : "Day of Week",
                                        "description" : "A day in a week.",
                                        "enum" : [ "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday" ],
                                        "type" : "string"
                                      }
                                    },
                                    "additionalProperties" : false,
                                    "required" : [ "occurrence", "day" ]
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "dayOfWeek" ]
                              } ]
                            },
                            "ends" : {
                              "title" : "Ends",
                              "description" : "When to end the monthly repetitions.",
                              "oneOf" : [ {
                                "title" : "One Of-1",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "repetitions" : {
                                    "title" : "Repetitions",
                                    "description" : "Number of times to repeat, then stop.",
                                    "type" : "integer"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "repetitions" ]
                              }, {
                                "title" : "One Of-2",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "date" : {
                                    "title" : "Date",
                                    "description" : "The date after which to stop repeating.",
                                    "type" : "string",
                                    "format" : "date",
                                    "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])$"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "date" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "type", "repeatBy" ]
                        }, {
                          "title" : "Yearly",
                          "description" : "Rules for repeating on an annual basis.",
                          "type" : "object",
                          "properties" : {
                            "type" : {
                              "title" : "Type",
                              "description" : "",
                              "enum" : [ "yearly" ],
                              "type" : "string"
                            },
                            "interval" : {
                              "title" : "Interval",
                              "description" : "Number of years between each repetition.",
                              "oneOf" : [ {
                                "type" : "integer"
                              }, {
                                "type" : "null"
                              } ]
                            },
                            "ends" : {
                              "title" : "Ends",
                              "description" : "When to end the yearly repetitions.",
                              "oneOf" : [ {
                                "title" : "One Of-1",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "repetitions" : {
                                    "title" : "Repetitions",
                                    "description" : "Number of times to repeat, then stop.",
                                    "type" : "integer"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "repetitions" ]
                              }, {
                                "title" : "One Of-2",
                                "description" : "",
                                "type" : "object",
                                "properties" : {
                                  "date" : {
                                    "title" : "Date",
                                    "description" : "The date after which to stop repeating.",
                                    "type" : "string",
                                    "format" : "date",
                                    "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])$"
                                  }
                                },
                                "additionalProperties" : false,
                                "required" : [ "date" ]
                              }, {
                                "type" : "object",
                                "maxProperties" : 0
                              } ]
                            }
                          },
                          "additionalProperties" : false,
                          "required" : [ "type" ]
                        } ]
                      }
                    },
                    "additionalProperties" : false,
                    "required" : [ "timePeriod", "repeatRule" ]
                  }, {
                    "type" : "object",
                    "maxProperties" : 0
                  } ]
                }
              },
              "additionalProperties" : false
            }
          }
        },
        "additionalProperties" : false,
        "required" : [ "address", "type", "status" ]
      }
    },
    "phones" : {
      "title" : "Phone",
      "description" : "The phones and phone-connected devices at which the organization can be contacted",
      "type" : "array",
      "items" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "title" : "Type",
            "description" : "A type of phone for the organization. Includes a standard type (e.g., 'main', 'support') and an optional, custom type to further identify the type of phone.",
            "type" : "object",
            "properties" : {
              "phoneType" : {
                "title" : "Type",
                "description" : "A type of phone contact for the organization",
                "enum" : [ "mobile", "home", "school", "vacation", "business", "fax", "pager", "tdd", "parent", "family", "main", "branch", "region", "support", "billing", "matchingGifts", "other" ],
                "type" : "string"
              },
              "detail" : {
                "title" : "Detail",
                "description" : "A user defined phone type.",
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "id" : {
                      "title" : "ID",
                      "description" : "The global identifier for the Detail.",
                      "type" : "string",
                      "format" : "guid",
                      "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
                    }
                  },
                  "links" : [ {
                    "rel" : "self",
                    "href" : "/phone-types/{id}",
                    "targetSchema" : {
                      "$ref" : "phone-types.json#"
                    }
                  } ],
                  "additionalProperties" : false,
                  "required" : [ "id" ]
                }, {
                  "type" : "object",
                  "maxProperties" : 0
                } ]
              }
            },
            "additionalProperties" : false,
            "required" : [ "phoneType" ]
          },
          "status" : {
            "title" : "Status",
            "description" : "The status of the phone for the organization",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "active", "inactive" ]
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "startOn" : {
            "title" : "Start On",
            "description" : "The earliest date that this phone was valid for the organization.",
            "oneOf" : [ {
              "type" : "string",
              "format" : "date-time",
              "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?(Z|[+-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])?$"
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "endOn" : {
            "title" : "End On",
            "description" : "The latest date that this phone was valid for the organization",
            "oneOf" : [ {
              "type" : "string"
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "preference" : {
            "title" : "Preferred Phone",
            "description" : "Specifies if the phone is preferred over all other phones.",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "primary" ]
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "country" : {
            "title" : "country",
            "description" : "The country in which the phone is located.",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "AFG", "AGO", "ALB", "AND", "ARE", "ARG", "ARM", "ATG", "AUS", "AUT", "AZE", "BDI", "BEL", "BEN", "BES", "BFA", "BGD", "BGR", "BHR", "BHS", "BIH", "BLR", "BLZ", "BOL", "BRA", "BRB", "BRN", "BTN", "BWA", "CAF", "CAN", "CHE", "CHL", "CHN", "CIV", "CMR", "COD", "COG", "COL", "COM", "CPV", "CRI", "CUB", "CUW", "CYP", "CZE", "DEU", "DJI", "DMA", "DNK", "DOM", "DZA", "ECU", "EGY", "ERI", "ESH", "ESP", "EST", "ETH", "FIN", "FJI", "FRA", "FSM", "GAB", "GBR", "GEO", "GHA", "GIN", "GLP", "GMB", "GNB", "GNQ", "GRC", "GRD", "GTM", "GUY", "HND", "HRV", "HTI", "HUN", "IDN", "IMN", "IND", "IRL", "IRN", "IRQ", "ISL", "ISR", "ITA", "JAM", "JOR", "JPN", "KAZ", "KEN", "KGZ", "KHM", "KIR", "KNA", "KOR", "KWT", "LAO", "LBN", "LBR", "LBY", "LCA", "LIE", "LKA", "LSO", "LTU", "LUX", "LVA", "MAR", "MCO", "MDA", "MDG", "MDV", "MEX", "MHL", "MKD", "MLI", "MLT", "MMR", "MNE", "MNG", "MNP", "MOZ", "MRT", "MUS", "MWI", "MYS", "NAM", "NER", "NGA", "NIC", "NLD", "NOR", "NPL", "NRU", "NZL", "OMN", "PAK", "PAN", "PCN", "PER", "PHL", "PLW", "PNG", "POL", "PRI", "PRK", "PRT", "PRY", "PSE", "QAT", "ROU", "RUS", "RWA", "SAU", "SDN", "SEN", "SGP", "SLB", "SLE", "SLV", "SMR", "SOM", "SRB", "SSD", "STP", "SUR", "SVK", "SVN", "SWE", "SWZ", "SXM", "SYC", "SYR", "TCD", "TGO", "THA", "TJK", "TKM", "TLS", "TON", "TTO", "TUN", "TUR", "TUV", "TWN", "TZA", "UGA", "UKR", "URY", "USA", "UZB", "VAT", "VCT", "VEN", "VNM", "VUT", "WSM", "YEM", "ZAF", "ZMB", "ZWE" ]
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "number" : {
            "title" : "Number",
            "description" : "The number assigned to the phone.",
            "type" : "string"
          },
          "extension" : {
            "title" : "Extension",
            "description" : "The extension used to connect to the phone when multiple phones share the same primary number.",
            "type" : "string"
          },
          "privacy" : {
            "title" : "Privacy",
            "description" : "An indication if the phone number is unlisted and should be protected from view or if it is listed and available for all.",
            "enum" : [ "listed", "unlisted" ],
            "type" : "string"
          },
          "comment" : {
            "title" : "Comment",
            "description" : "A comment concerning the phone number.",
            "type" : "string"
          }
        },
        "additionalProperties" : false,
        "required" : [ "type", "number" ]
      }
    },
    "emails" : {
      "title" : "Email",
      "description" : "The email addresses at which the organization can be contacted",
      "type" : "array",
      "items" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "title" : "Type",
            "description" : "A type of email for the organization. Includes a standard type (e.g. 'general', 'hr') and an optional, custom type to further identify the type of email.",
            "type" : "object",
            "properties" : {
              "emailType" : {
                "title" : "Type",
                "description" : "A mapping to a standard type for the email type",
                "enum" : [ "personal", "business", "school", "parent", "family", "sales", "support", "general", "billing", "legal", "hr", "media", "matchingGifts", "other" ],
                "type" : "string"
              },
              "detail" : {
                "title" : "Detail",
                "description" : "A user defined email type.",
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "id" : {
                      "title" : "ID",
                      "description" : "The global identifier for the Detail.",
                      "type" : "string",
                      "format" : "guid",
                      "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
                    }
                  },
                  "links" : [ {
                    "rel" : "self",
                    "href" : "/email-types/{id}",
                    "targetSchema" : {
                      "$ref" : "email-types.json#"
                    }
                  } ],
                  "additionalProperties" : false,
                  "required" : [ "id" ]
                }, {
                  "type" : "object",
                  "maxProperties" : 0
                } ]
              }
            },
            "additionalProperties" : false,
            "required" : [ "emailType" ]
          },
          "status" : {
            "title" : "Status",
            "description" : "The status of the email for the organization",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "active", "inactive" ]
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "startOn" : {
            "title" : "Start On",
            "description" : "The date the email became active",
            "oneOf" : [ {
              "type" : "string",
              "format" : "date-time",
              "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?(Z|[+-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])?$"
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "endOn" : {
            "title" : "End On",
            "description" : "The date the email became inactive",
            "oneOf" : [ {
              "type" : "string",
              "format" : "date-time",
              "pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?(Z|[+-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])?$"
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "preference" : {
            "title" : "Preferred Email",
            "description" : "Specifies if the email is preferred over all other emails.",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "primary" ]
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "address" : {
            "title" : "Email Address",
            "description" : "An email address for the organization",
            "type" : "string",
            "format" : "email",
            "pattern" : "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"
          },
          "comment" : {
            "title" : "Comment",
            "description" : "A comment concerning the email address.",
            "type" : "string"
          }
        },
        "additionalProperties" : false,
        "required" : [ "type", "address" ]
      }
    },
    "socialMedia" : {
      "title" : "Social Media",
      "description" : "The social media account at which the organization can be contacted.",
      "type" : "array",
      "items" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "title" : "Social Media",
            "description" : "A type of social media account for the organization. Includes a standard type (e.g. 'skype', 'facebook') and an optional, custom type to further identify the type of social media account.",
            "type" : "object",
            "properties" : {
              "socialMediaType" : {
                "title" : "Type",
                "description" : "A type of social media account (e.g. 'skype', 'facebook').",
                "enum" : [ "windowsLive", "yahoo", "skype", "qq", "hangouts", "icq", "jabber", "facebook", "twitter", "instagram", "tumblr", "pinterest", "linkedin", "foursquare", "youtube", "blog", "website", "other" ],
                "type" : "string"
              },
              "detail" : {
                "title" : "Detail",
                "description" : "A user defined social media type.",
                "oneOf" : [ {
                  "type" : "object",
                  "properties" : {
                    "id" : {
                      "title" : "ID",
                      "description" : "The global identifier for the Detail.",
                      "type" : "string",
                      "format" : "guid",
                      "pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
                    }
                  },
                  "links" : [ {
                    "rel" : "self",
                    "href" : "/social-media-types/{id}",
                    "targetSchema" : {
                      "$ref" : "social-media-types.json#"
                    }
                  } ],
                  "additionalProperties" : false,
                  "required" : [ "id" ]
                }, {
                  "type" : "object",
                  "maxProperties" : 0
                } ]
              }
            },
            "additionalProperties" : false,
            "required" : [ "socialMediaType" ]
          },
          "status" : {
            "title" : "Status",
            "description" : "The status of a social media account information for the organization",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "active", "inactive" ]
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "preference" : {
            "title" : "Preferred Social Media",
            "description" : "Specifies if the social media account is preferred over all other social media accounts.",
            "oneOf" : [ {
              "type" : "string",
              "enum" : [ "primary" ]
            }, {
              "type" : "string",
              "maxLength" : 0
            } ]
          },
          "address" : {
            "title" : "Address",
            "description" : "The username, handle or other address of the social media account.",
            "type" : "string"
          },
          "webSiteURL" : {
            "title" : "Web Site URL",
            "description" : "The URL used to access the social media account.",
            "type" : "string"
          }
        },
        "additionalProperties" : false,
        "required" : [ "type", "address" ]
      }
    },
    "referenceId" : {
      "title" : "Reference Id",
      "description" : "The authoritative system’s reference identifier of the organization.",
      "type" : "string"
    }
  },
  "required" : [ "id", "names", "affiliation" ],
  "additionalProperties" : false,
  "links" : [ {
    "rel" : "filter",
    "encType" : "application/x-www-form-urlencoded",
    "method" : "GET",
    "href" : "/constituent-organizations/",
    "schema" : {
      "type" : "object",
      "properties" : {
        "organization" : {
          "type" : "string"
        },
        "name" : {
          "type" : "string"
        }
      }
    }
  } ]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy