File tree Expand file tree Collapse file tree 3 files changed +10
-56
lines changed
Expand file tree Collapse file tree 3 files changed +10
-56
lines changed Original file line number Diff line number Diff line change 1+ ## [ 14.17.1-rc.1] ( https://github.com/makeomatic/ms-users/compare/v14.17.0...v14.17.1-rc.1 ) (2021-03-05)
2+
3+
4+ ### Bug Fixes
5+
6+ * clear changelog [ skip ci] ([ af3ec44] ( https://github.com/makeomatic/ms-users/commit/af3ec448b2ec45e79e83c6c877cd5b4634e92fe7 ) )
7+ * fix validation pump-jack response ([ 71fa789] ( https://github.com/makeomatic/ms-users/commit/71fa7890a9f5600be7f53241b4d7fbe922afeeae ) )
8+
19# [ 14.17.0] ( https://github.com/makeomatic/ms-users/compare/v14.16.0...v14.17.0 ) (2021-03-01)
210
311
Original file line number Diff line number Diff line change 22 "name" : " ms-users" ,
33 "description" : " Core of the microservice for handling users" ,
44 "main" : " ./lib/index.js" ,
5- "version" : " 14.17.0 " ,
5+ "version" : " 14.17.1-rc.1 " ,
66 "scripts" : {
77 "compile" : " rimraf ./lib; babel -d ./lib --copy-files ./src" ,
88 "pretest" : " yarn compile" ,
Original file line number Diff line number Diff line change @@ -6,74 +6,20 @@ const { pick } = require('lodash');
66const { USERS_INVALID_TOKEN , lockBypass, ErrorConflictUserExists } = require ( '../../constants' ) ;
77const contacts = require ( '../contacts' ) ;
88
9- const typeOrNull = ( type , extra = { } ) => ( {
10- anyOf : [ { type : 'null' } , { type, ...extra } ] ,
11- } ) ;
12-
139const schema = {
1410 $id : 'pump-jack.profile' ,
1511 type : 'object' ,
16- required : [ 'phone' ] ,
12+ required : [ 'phone' , 'firstName' , 'lastName' ] ,
1713 properties : {
18- city : {
19- type : 'string' ,
20- } ,
21- country : {
22- type : 'string' ,
23- } ,
24- dob : {
25- type : 'string' , // timestamp
26- } ,
2714 firstName : {
2815 type : 'string' ,
2916 } ,
3017 lastName : {
3118 type : 'string' ,
3219 } ,
33- gender : typeOrNull ( 'string' ) ,
34- state : {
35- type : 'string' ,
36- } ,
37- zipCode : {
38- type : 'string' ,
39- } ,
4020 phone : {
4121 type : 'string' ,
4222 } ,
43- email : {
44- type : 'string' ,
45- } ,
46- creationStamp : {
47- type : 'string' ,
48- } ,
49- hasAvatar : {
50- type : 'boolean' ,
51- } ,
52- jerseyName : {
53- type : 'string' ,
54- } ,
55- jerseyNumber : {
56- type : 'string' ,
57- } ,
58- isSubscribedToTextAlerts : {
59- type : 'boolean' ,
60- } ,
61- isNotificationEnabled : {
62- type : 'boolean' ,
63- } ,
64- status : {
65- type : 'number' ,
66- } ,
67- phoneCountry : typeOrNull ( 'string' ) ,
68- nationality : {
69- type : 'string' ,
70- } ,
71- residency : {
72- type : 'string' ,
73- } ,
74- avatarUrl : {
75- type : 'string' ,
76- } ,
7723 } ,
7824} ;
7925
You can’t perform that action at this time.
0 commit comments