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

- old
+ new

@@ -1,14 +1,16 @@ -{"type":"object", +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type":"object", "title": "user", - "name": "user", - "description": "A user as seen by SalesKing", + "description": "A SalesKing user", + "required" : ["email", "language"], "properties":{ "id":{ "description":"Unique identifier - UUID", "identity":true, - "readonly":true, + "readOnly":true, "type":"string", "maxLength": 22, "minLength":22 }, "last_name":{ @@ -36,21 +38,19 @@ "type":"string", "maxLength": 50 }, "language":{ "description": "The users language, reflected in the interface.", - "required":true, "type":"string", "maxLength": 10 }, "time_zone":{ "description": "Time zone", "type":"string" }, "email":{ "description": "Email address of the user. Unique in SK", - "required":true, "type":"string", "maxLength": 100 }, "url":{ "description": "An url associated with the person, e.g its company website.", @@ -82,16 +82,16 @@ "maxLength": 30 }, "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