瀏覽代碼

Fix marshallow schema

Guénaël Muller 7 年之前
父節點
當前提交
4701a2b664
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tracim/views/core_api/schemas.py

+ 2 - 2
tracim/views/core_api/schemas.py 查看文件

@@ -3,12 +3,12 @@ import marshmallow
3 3
 
4 4
 
5 5
 class ProfileSchema(marshmallow.Schema):
6
-    id = marshmallow.fields.Int(dump_only=True, required=True)
6
+    id = marshmallow.fields.Int(dump_only=True)
7 7
     name = marshmallow.fields.String()
8 8
 
9 9
 
10 10
 class UserSchema(marshmallow.Schema):
11
-    user_id = marshmallow.fields.Int(dump_only=True, required=True)
11
+    user_id = marshmallow.fields.Int(dump_only=True)
12 12
     email = marshmallow.fields.Email(required=True)
13 13
     display_name = marshmallow.fields.String()
14 14
     created = marshmallow.fields.DateTime(format='iso8601')