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) {
304
304
index : 'not_analyzed'
305
305
} ,
306
306
terms : {
307
- type : 'integer'
307
+ type : 'string'
308
+ } ,
309
+ groups : {
310
+ type : 'string'
308
311
} ,
309
312
type : {
310
313
type : 'string' ,
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ function createSchema () {
30
30
id : Joi . number ( ) . integer ( ) . positive ( ) . required ( ) ,
31
31
createdAt : Joi . date ( ) . required ( ) ,
32
32
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 ( ) ,
34
35
name : Joi . string ( ) . required ( ) ,
35
36
description : Joi . string ( ) . allow ( null ) . allow ( '' ) . optional ( ) ,
36
37
type : Joi . string ( ) . max ( 45 ) . required ( ) ,
You can’t perform that action at this time.
0 commit comments