{ "error": { "properties": { "code": { "type": "string" }, "message": { "type": "string" } }, "required": [ "code" ], "type": "object" }, "group": { "description": "this expresses a group of users", "properties": { "admin": { "anyOf": [ { "$ref": "#/definitions/user" } ], "nullable": true }, "created_at": { "format": "date-time", "type": "string" }, "id": { "$ref": "#/definitions/id" }, "members": { "items": { "$ref": "#/definitions/user" }, "type": "array" } }, "required": [ "id", "admin", "members", "created_at" ], "title": "Group", "type": "object" }, "id": { "description": "id type", "type": "integer" }, "not_found": { "allOf": [ { "$ref": "#/definitions/error" }, { "properties": { "code": { "constant": "not_found" } }, "required": [ "code" ], "type": "object" } ] }, "password": { "maxLength": 128, "minLength": 1, "pattern": "[a-z0-9!\"#$%&'()=~|@]+", "type": "string" }, "user": { "properties": { "SNSs": { "items": { "type": "string" }, "type": "array" }, "id": { "$ref": "#/definitions/id", "description": "unique id of the user" }, "name": { "nullable": true, "type": "string" }, "type": { "enum": [ "admin", "writer", "reader" ], "type": "string" } }, "required": [ "id", "name", "type", "SNSs" ], "title": "User", "type": "object" } }