From c8ea77c53e1866e55665e4f3d5b03b238789a997 Mon Sep 17 00:00:00 2001 From: Max Rovensky Date: Mon, 28 Jan 2019 19:56:17 +0800 Subject: [PATCH 1/2] Add `profileVisibility` field to user schema --- user/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/user/index.js b/user/index.js index 0c4bc13..70606a8 100644 --- a/user/index.js +++ b/user/index.js @@ -48,6 +48,10 @@ const Website = { maxLength: 40 }; +const ProfileVisibility = { + type: 'string' +}; + const Profile = { type: 'object', properties: { @@ -82,7 +86,8 @@ const User = { platformVersion: PlatformVersion, bio: Bio, website: Website, - profiles: Profiles + profiles: Profiles, + profileVisibility: ProfileVisibility } }; From 2cdc0c62da5080acc1631d7b3bd6ab965141a2d5 Mon Sep 17 00:00:00 2001 From: Max Rovensky Date: Mon, 28 Jan 2019 20:03:05 +0800 Subject: [PATCH 2/2] Use boolean for profile visibility --- user/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/index.js b/user/index.js index 70606a8..1a65816 100644 --- a/user/index.js +++ b/user/index.js @@ -49,7 +49,7 @@ const Website = { }; const ProfileVisibility = { - type: 'string' + type: 'boolean' }; const Profile = { @@ -87,7 +87,7 @@ const User = { bio: Bio, website: Website, profiles: Profiles, - profileVisibility: ProfileVisibility + profileVisible: ProfileVisibility } };