Subject: [scim] Question about Addresses

From: Thomas Krille <[email-masked]>
Date: Wed, 20 Nov 2013 17:27:28 +0100

Hello,

i have a question regarding the Address multi-valued attribute:

The current spec states in section 3.2:

The value attribute is a complex type with the following sub-attributes.

>From my understanding this means that an address is represented in json as
follows:

{
    "type": "work",
    "value": {
        "streetAddress": "100 Universal City Plaza",
        "locality": "Hollywood",
        "region": "CA",
        "postalCode": "91608",
        "country": "USA",
        "formatted": "100 Universal City Plaza\nHollywood, CA 91608 USA"
    }
    "primary": true

}

But in the example in section 12.2 an address is represented as follows:

{
    "type": "work",
    "streetAddress": "100 Universal City Plaza",
    "locality": "Hollywood",
    "region": "CA",
    "postalCode": "91608",
    "country": "USA",
    "formatted": "100 Universal City Plaza\nHollywood, CA 91608 USA",
    "primary": true
}

What is the right representation?