json/v2.0/company.json in sk_api_schema-0.10.6 vs json/v2.0/company.json in sk_api_schema-0.11.0
- old
+ new
@@ -1,14 +1,15 @@
-{ "type":"object",
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type":"object",
"title": "company",
- "name": "company",
"description": "A company is the main entity, so any data belongs to a company. It is identified by the current subdomain and cannot be edited via API atm",
"properties":{
"id":{
"description":"Unique identifier - UUID",
"identity":true,
- "readonly":true,
+ "readOnly":true,
"type":"string",
"maxLength": 22,
"minLength":22
},
"name":{
@@ -34,20 +35,19 @@
},
"account_link":{
"description": "Link to a company's SalesKing account.",
"type":"string",
"format":"uri",
- "readonly":true
+ "readOnly":true
},
"time_zone":{
"description": "Default time zone, used for new users",
"type":"string",
"maxLength": 50
},
"email":{
"description": "Email address",
- "required":true,
"type":"string",
"maxLength": 100
},
"url":{
"description": "A company website",
@@ -75,11 +75,14 @@
"maxLength": 30
},
"addresses":{
"description": "A company can have many addresses, sorted by date descending(new first). Default address used in placeholder is the most recent one.",
"type":"array",
- "properties" : {"$ref":"./addresses.json#properties"}
+ "items": {
+ "type": "object",
+ "$ref": "./address.json#"
+ }
},
"vat_number":{
"description": "VAT number, for a company entitled to pay value added taxes.",
"type":"string",
"maxLength": 30
@@ -120,16 +123,16 @@
"maxLength": 70
},
"created_at":{
"description": "Date the record was created in SK. Never changes afterwards.",
"format":"date-time",
- "readonly":true,
+ "readOnly":true,
"type":"string"
},
"updated_at":{
"description": "Last date when the record was edited.",
"format":"date-time",
- "readonly":true,
+ "readOnly":true,
"type":"string"
}
},
"links":[
\ No newline at end of file