Skip to content

Commit

Permalink
after discussions
Browse files Browse the repository at this point in the history
  • Loading branch information
Monica Keller committed Aug 13, 2010
1 parent 5eab8a2 commit a91f22b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
19 changes: 19 additions & 0 deletions action.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type" : "object",
"title" : "action",
"description" : "An action construct describes a change in an object",
"properties": {
"verb" : {
"title" : "verb",
"type" : "string",
"default": "post",
"optional" : "true",
"description" :"Represents the type of action performed: post(add), update or delete"
},
"object" : {
"type": "object",
"description" : "Identifies the object to which the verb applies. Ex: Added a photo",
"properties" : {"$ref":"./object.json#properties"}
}
}
}
2 changes: 1 addition & 1 deletion activity.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"description" : "Represents the object to which the activity was performed. Example: A photo album",
"properties" : {"$ref":"./object.json#properties"}
},
"postedTime" : {
"time" : {
"type" : "string",
"description": "Time at which the activity occurred",
"format" : "date"
Expand Down
2 changes: 1 addition & 1 deletion core_object.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"description" : "Entity who posted this object",
"properties" : {"$ref":"#properties"}
},
"postedTime" : {
"time" : {
"optional" : true,
"type" : "string",
"description": "Time at which the object was created. We should a last updated time.",
Expand Down
4 changes: 2 additions & 2 deletions objectTypes/property.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"example" : {
"actor" : {"id":1212, "displayName" : "Peter"},
"verb" : "update",
"postedTime" : "2010-08-02T15:29:00Z",
"time" : "2010-08-02T15:29:00Z",
"object" :
{
"objectType" : "property",
Expand All @@ -35,7 +35,7 @@
},
"target" : {
"id": 12121,
"postedTime" : "2010-08-02T15:29:00Z",
"time" : "2010-08-02T15:29:00Z",
"displayName" : "Peter's House"
}
}
Expand Down
4 changes: 2 additions & 2 deletions verbs/update-multiple.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
"example" : {
"actor" : {"id":1212, "displayName" : "Melissa"},
"verb" : "update-multiple",
"postedTime" : "2010-08-02T15:29:00Z",
"time" : "2010-08-02T15:29:00Z",
"target" : {
"type" : "profile",
"id" : "2121212",
"displayName" : "Melissa's profile",
"postedTime" : "2009-08-02T15:29:00Z"
"time" : "2009-08-02T15:29:00Z"
},
"object" : {
"type" : "changeset",
Expand Down

0 comments on commit a91f22b

Please sign in to comment.