Selaa lähdekoodia

Fix marshallow schema

Guénaël Muller 7 vuotta sitten
vanhempi
commit
4701a2b664
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      tracim/views/core_api/schemas.py

+ 2 - 2
tracim/views/core_api/schemas.py Näytä tiedosto

@@ -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')