json/v1.0/client.json in sk_api_schema-0.2.3 vs json/v1.0/client.json in sk_api_schema-0.2.4

- old
+ new

@@ -7,53 +7,63 @@ "readonly":true, "type":"string" }, "number": { "description": "Unique number, auto-created by SK for new client without number.", - "type":"string" + "type":"string", + "maxLength": 50 }, "organisation": { "description": "Name of a company. This or lastname must be present", "required" : true, - "type":"string" + "type":"string", + "maxLength": 100 }, "last_name": { "description": "Last name of a person. At least this or the organisation field must be filled for new records", - "type":"string" + "type":"string", + "maxLength": 50 }, "first_name": { "description": "First name of a person.", - "type":"string" + "type":"string", + "maxLength": 50 }, "gender": { "description": "Can be empty for a company. Is used in salutation", "enum":["male", "female"], "type":"string" }, "position": { "description": "Position of a person in a company.", - "type":"string" + "type":"string", + "maxLength": 50 }, "title": { "description": "Academical title of a person e.g. Dr., Prof", - "type":"string" + "type":"string", + "maxLength": 50 }, "tax_number": { "description": "Tax number, normally applies to a private person", - "type":"string" + "type":"string", + "maxLength": 30 }, "vat_number": { "description": "VAT number, for a company or person paying value added taxes.", - "type":"string" + "type":"string", + "maxLength": 30 }, "email": { "description": "Email address of the contact.", - "type":"string" + "type":"string", + "maxLength": 100 }, "url": { "description": "An url associated with the person, e.g its company website.", - "type":"string" + "type":"string", + "maxLength": 255 }, "birthday": { "format":"date", "type":"string" }, @@ -83,47 +93,57 @@ "enum":["cash","bank_transfer","credit_card","paypal","direct_debit","cheque", "moneybookers", "premium_sms"], "type":"string" }, "bank_name": { "description": "Bank name", - "type":"string" + "type":"string", + "maxLength": 70 }, "bank_number": { "description": "Bank number", - "type":"string" + "type":"string", + "maxLength": 35 }, "bank_account_number": { "description": "Bank account number.", - "type":"string" + "type":"string", + "maxLength": 35 }, "bank_iban": { "description": "IBAN Number of the bank account. Is validated", - "type":"string" + "type":"string", + "maxLength": 35 }, "bank_swift": { "description": "SWIFT BIC- Bank Identifier Code", - "type":"string" + "type":"string", + "maxLength": 11 }, "bank_owner": { "description": "Bank account owner", - "type":"string" + "type":"string", + "maxLength": 70 }, "phone_fax": { "description": "Fax number", - "type":"string" + "type":"string", + "maxLength": 30 }, "phone_office": { "description": "Office phone number", - "type":"string" + "type":"string", + "maxLength": 30 }, "phone_home": { "description": "Private phone number", - "type":"string" + "type":"string", + "maxLength": 30 }, "phone_mobile": { "description": "Mobile phone number", - "type":"string" + "type":"string", + "maxLength": 30 }, "lock_version": { "description": "Increased on every edit, so SK can detect/prevent a concurrent edit by another user. First save wins.", "type":"integer" }, @@ -141,10 +161,10 @@ "type":"string" }, "addresses": { "description": "A client can have many addresses, sorted by date descending(new first). Default address is the most recent one.", "type":"array", - "properties" : {"$ref":"./addresses.json#properties"} + "properties" : {"$ref":"./address.json#properties"} }, "team_id":{ "description": "A team uuid. If set only the team and its parent teams can see the record.", "type":"string" } \ No newline at end of file