json/v2.0/task.json in sk_api_schema-0.10.6 vs json/v2.0/task.json in sk_api_schema-0.11.0

- old
+ new

@@ -1,26 +1,34 @@ -{ "type":"object", +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type":"object", "title": "task", - "name": "task", - "description":"An Task in SK.", + "description":"An Task", + "required" : ["name", "description"], "properties":{ "id":{ "description":"Unique identifier - UUID", "identity":true, - "readonly":true, + "readOnly":true, "type":"string", "maxLength": 22, "minLength":22 }, + "company_id":{ + "description":"Company", + "readOnly":true, + "type":"string", + "maxLength": 22, + "minLength":22 + }, "name":{ "description": "The task title.", - "required":true, - "type":"string" + "type":"string", + "maxLength": 255 }, "description":{ "description": "Notes, explanations for the task.", - "required":true, "type":"string" }, "status":{ "description": "New tasks are open by default, unless otherwise stated.", "default":"open", @@ -33,24 +41,31 @@ "maxLength": 22, "minLength":22 }, "contact":{ "description": "The contact for the task. Use contact_id field to set a contact.", - "readonly":true, + "readOnly":true, "type":"object", - "properties":{"$ref":"./contact.json#properties"} + "$ref":"./contact.json#" }, "documents":{ - "description": "A tasks can have many related documents.", + "description": "A task can have many related documents.", + "readOnly":true, "type":"array", - "properties" : {"$ref":"./document.json#properties"} + "items": { + "type": "object", + "$ref" : "./document.json#" + } }, "attachments":{ "description": "Attached files, uploads.", - "readonly":true, + "readOnly":true, "type":"array", - "properties":{"$ref":"./attachment.json#properties"} + "items": { + "type": "object", + "$ref" : "./attachment.json#" + } }, "assignee_id":{ "description": "User who should do the tasks.", "type":"string", "maxLength": 22, @@ -63,22 +78,22 @@ "minLength":22 }, "closed_at":{ "description": "Date the task was completed.", "format":"date", - "readonly":true, + "readOnly":true, "type":"string" }, "created_at":{ "description": "Date the object was created in SK. Never changes afterwards", "format":"date-time", - "readonly":true, + "readOnly":true, "type":"string" }, "updated_at":{ "description": "Date the object was edited in SK.", "format":"date-time", - "readonly":true, + "readOnly":true, "type":"string" } }, "links":[ { "rel": "self",