json/v2.0/language.json in sk_api_schema-0.10.6 vs json/v2.0/language.json in sk_api_schema-0.11.0
- old
+ new
@@ -1,38 +1,46 @@
-{ "type":"object",
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type":"object",
"title": "language",
- "name": "language",
"description": "A language in SK can be assigned to documents, contacts and templates. When creating new documents, emails or PDF the language is used to select a specific template or language agnostic defaults. A language has many translations.",
+ "required":["name"],
"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
+ },
"code":{
"description": "Language short-code",
"type":"string",
"maxLength": 10
},
"name":{
"description": "The name of the language, shown in the interface",
"type":"string",
- "required":true,
"maxLength": 30
},
"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",