aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/requests/users/keys.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/requests/users/keys.py')
-rw-r--r--pygithub3/requests/users/keys.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/pygithub3/requests/users/keys.py b/pygithub3/requests/users/keys.py
index 9afa3cd..23a30d9 100644
--- a/pygithub3/requests/users/keys.py
+++ b/pygithub3/requests/users/keys.py
@@ -21,13 +21,19 @@ class Add(Request):
resource = Key
uri = 'user/keys'
- body_schema = ('title', 'key')
+ body_schema = {
+ 'schema': ('title', 'key'),
+ 'required': ('title', 'key')
+ }
class Update(Request):
resource = Key
- body_schema = ('title', 'key')
+ body_schema = {
+ 'schema': ('title', 'key'),
+ 'required': ('title', 'key')
+ }
uri = 'user/keys/{key_id}'