File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,10 @@ function getRequestBody (indexName) {
304304 index : 'not_analyzed'
305305 } ,
306306 terms : {
307- type : 'integer'
307+ type : 'string'
308+ } ,
309+ groups : {
310+ type : 'string'
308311 } ,
309312 type : {
310313 type : 'string' ,
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ function createSchema () {
3030 id : Joi . number ( ) . integer ( ) . positive ( ) . required ( ) ,
3131 createdAt : Joi . date ( ) . required ( ) ,
3232 updatedAt : Joi . date ( ) . required ( ) ,
33- terms : Joi . array ( ) . items ( Joi . number ( ) . positive ( ) ) . optional ( ) ,
33+ terms : Joi . array ( ) . items ( Joi . string ( ) ) . optional ( ) ,
34+ groups : Joi . array ( ) . items ( Joi . string ( ) ) . optional ( ) ,
3435 name : Joi . string ( ) . required ( ) ,
3536 description : Joi . string ( ) . allow ( null ) . allow ( '' ) . optional ( ) ,
3637 type : Joi . string ( ) . max ( 45 ) . required ( ) ,
You can’t perform that action at this time.
0 commit comments