json/v2.0/comment.json in sk_api_schema-0.10.6 vs json/v2.0/comment.json in sk_api_schema-0.11.0
- old
+ new
@@ -1,49 +1,55 @@
-{ "type":"object",
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type":"object",
"title": "comment",
- "name": "comment",
"description":"An comment in SK must always be related to an object.",
+ "required": ["related_object_type", "related_object_id", "text"],
"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
+ },
"text":{
"description": "The comment himself.",
- "required":true,
"type":"string"
},
"related_object_type":{
"description": "Object type of the comments parent. Is the camelcased base class name: Document for invoice, credit_note, contact",
- "required":true,
"type":"string"
},
"related_object_id":{
"description": "uuid of the comments parent object.",
- "required":true,
"type":"string",
"maxLength": 22,
"minLength":22
},
"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"
},
"team_id":{
"description": "A team uuid taken from the related object. If set only the team and its parent teams can see the record.",
- "readonly" :true,
+ "readOnly" :true,
"type":"string",
"maxLength": 22,
"minLength":22
}
},