Sha256: aeb8220ef3c24910b4e7c2b8c0b9072cb1a877b9293a3ac0d6def0b7fe07f9ff

Contents?: true

Size: 1.93 KB

Versions: 4

Compression:

Stored size: 1.93 KB

Contents

{ "type":"object",
  "title": "address",
  "description":"An address in SK must always be related to an object.",
  "properties": {
    "id": {
      "description": "uuid of the adress.",
      "identity":true,
      "readonly":true,
      "type":"string"
    },
    "city": {
      "description": "City for the address. Must at least be present for an address.",
      "required":true,
      "type":"string"
    },
    "address1": {
      "description": "Should contain the street or otherwise primary address information.",
      "type":"string"
    },
    "address2": {
      "description": "Additional address information, like floor number",
      "type":"string"
    },
    "pobox": {
      "description": "Post office box number",
      "type":"string"
    },
    "zip": {
      "description": "Zip number of the city. Length must be between 4..10",
      "type":"string"
    },
    "state": {
      "description": "Country state of address",
      "type":"string"
    },
    "country": {
      "description": "Country of the address.",
      "type":"string"
    },
    "created_at": {
      "description": "Date the object was created in SK. Never changes afterwards",
      "format":"date-time",
      "readonly":true,
      "type":"string"
    },
    "updated_at": {
      "description": "Date the object was edited in SK.",
      "format":"date-time",
      "readonly":true,
      "type":"string"
    },   
    "address_type": {
      "description": "Type of the address, as seen by vCard definition.",
      "enum":["work","home"],
      "type":"string"
    },
    "lat": {
      "description": "Geolocation latitude",      
      "type":"string"
    },
    "long": {
      "description": "Geolocation longitude",
      "type":"string"
    },
    "_destroy": {
      "description": "When set an existing address will be deleted. This switch is only used when addresses are passed-in nested inside their parent object(a contact).",
      "type":"boolean"
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sk_api_schema-0.2.2 json/v1.0/address.json
sk_api_schema-0.2.1 json/v1.0/address.json
sk_api_schema-0.2.0 json/v1.0/address.json
sk_api_schema-0.1.2 json/v1.0/address.json