@@ -25,6 +25,14 @@ describe('filterSchema', () => {
2525 type : 'object' ,
2626 'x-typescript-type' : '@loopback/repository#Filter<MyUserModel>' ,
2727 properties : {
28+ avg : {
29+ example : 'column1' ,
30+ type : 'string' ,
31+ } ,
32+ count : {
33+ example : 'column1' ,
34+ type : 'string' ,
35+ } ,
2836 where : {
2937 type : 'object' ,
3038 title : 'my-user-model.WhereFilter' ,
@@ -54,11 +62,29 @@ describe('filterSchema', () => {
5462 } ,
5563 } ,
5664 ] ,
57- title : 'my-user-model.Fields ' ,
65+ title : 'my-user-model.GroupBy ' ,
5866 } ,
5967 offset : { type : 'integer' , minimum : 0 } ,
6068 limit : { type : 'integer' , minimum : 1 , example : 100 } ,
69+ max : {
70+ example : 'column1' ,
71+ type : 'string' ,
72+ } ,
73+ min : {
74+ example : 'column1' ,
75+ type : 'string' ,
76+ } ,
77+ groupBy : {
78+ items : {
79+ type : 'string' ,
80+ } ,
81+ type : 'array' ,
82+ } ,
6183 skip : { type : 'integer' , minimum : 0 } ,
84+ sum : {
85+ example : 'column1' ,
86+ type : 'string' ,
87+ } ,
6288 order : {
6389 oneOf : [ { type : 'string' } , { type : 'array' , items : { type : 'string' } } ] ,
6490 } ,
@@ -75,6 +101,14 @@ describe('filterSchema', () => {
75101 type : 'object' ,
76102 'x-typescript-type' : '@loopback/repository#Filter<MyUserModel>' ,
77103 properties : {
104+ avg : {
105+ example : 'column1' ,
106+ type : 'string' ,
107+ } ,
108+ count : {
109+ example : 'column1' ,
110+ type : 'string' ,
111+ } ,
78112 fields : {
79113 oneOf : [
80114 {
@@ -99,11 +133,29 @@ describe('filterSchema', () => {
99133 } ,
100134 } ,
101135 ] ,
102- title : 'my-user-model.Fields ' ,
136+ title : 'my-user-model.GroupBy ' ,
103137 } ,
104138 offset : { type : 'integer' , minimum : 0 } ,
139+ groupBy : {
140+ items : {
141+ type : 'string' ,
142+ } ,
143+ type : 'array' ,
144+ } ,
105145 limit : { type : 'integer' , minimum : 1 , example : 100 } ,
146+ max : {
147+ example : 'column1' ,
148+ type : 'string' ,
149+ } ,
150+ min : {
151+ example : 'column1' ,
152+ type : 'string' ,
153+ } ,
106154 skip : { type : 'integer' , minimum : 0 } ,
155+ sum : {
156+ example : 'column1' ,
157+ type : 'string' ,
158+ } ,
107159 order : {
108160 oneOf : [ { type : 'string' } , { type : 'array' , items : { type : 'string' } } ] ,
109161 } ,
@@ -129,6 +181,14 @@ describe('filterSchema', () => {
129181 type : 'object' ,
130182 'x-typescript-type' : '@loopback/repository#Filter<CustomUserModel>' ,
131183 properties : {
184+ avg : {
185+ example : 'column1' ,
186+ type : 'string' ,
187+ } ,
188+ count : {
189+ example : 'column1' ,
190+ type : 'string' ,
191+ } ,
132192 where : {
133193 type : 'object' ,
134194 title : 'CustomUserModel.WhereFilter' ,
@@ -158,11 +218,29 @@ describe('filterSchema', () => {
158218 } ,
159219 } ,
160220 ] ,
161- title : 'CustomUserModel.Fields ' ,
221+ title : 'CustomUserModel.GroupBy ' ,
162222 } ,
163223 offset : { type : 'integer' , minimum : 0 } ,
224+ groupBy : {
225+ items : {
226+ type : 'string' ,
227+ } ,
228+ type : 'array' ,
229+ } ,
164230 limit : { type : 'integer' , minimum : 1 , example : 100 } ,
231+ max : {
232+ example : 'column1' ,
233+ type : 'string' ,
234+ } ,
235+ min : {
236+ example : 'column1' ,
237+ type : 'string' ,
238+ } ,
165239 skip : { type : 'integer' , minimum : 0 } ,
240+ sum : {
241+ example : 'column1' ,
242+ type : 'string' ,
243+ } ,
166244 order : {
167245 oneOf : [ { type : 'string' } , { type : 'array' , items : { type : 'string' } } ] ,
168246 } ,
0 commit comments