File tree Expand file tree Collapse file tree 1 file changed +20
-8
lines changed
apps/meteor/app/api/server/v1 Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -1012,14 +1012,26 @@ const isRoomGetRolesPropsSchema = {
10121012} ;
10131013
10141014const RoomsFavoriteSchema = {
1015- type : 'object' ,
1016- properties : {
1017- favorite : { type : 'boolean' } ,
1018- roomId : { type : 'string' } ,
1019- roomName : { type : 'string' } ,
1020- } ,
1021- required : [ 'favorite' ] ,
1022- additionalProperties : false ,
1015+ anyOf : [
1016+ {
1017+ type : 'object' ,
1018+ properties : {
1019+ favorite : { type : 'boolean' } ,
1020+ roomName : { type : 'string' } ,
1021+ } ,
1022+ required : [ 'roomName' , 'favorite' ] ,
1023+ additionalProperties : false ,
1024+ } ,
1025+ {
1026+ type : 'object' ,
1027+ properties : {
1028+ favorite : { type : 'boolean' } ,
1029+ roomId : { type : 'string' } ,
1030+ } ,
1031+ required : [ 'roomId' , 'favorite' ] ,
1032+ additionalProperties : false ,
1033+ } ,
1034+ ] ,
10231035} ;
10241036
10251037const isRoomsFavoriteProps = ajv . compile < RoomsFavorite > ( RoomsFavoriteSchema ) ;
You can’t perform that action at this time.
0 commit comments