@@ -65,12 +65,15 @@ export const $ItemCreate = {
65
65
title : {
66
66
type : "string" ,
67
67
isRequired : true ,
68
+ maxLength : 255 ,
69
+ minLength : 1 ,
68
70
} ,
69
71
description : {
70
72
type : "any-of" ,
71
73
contains : [
72
74
{
73
75
type : "string" ,
76
+ maxLength : 255 ,
74
77
} ,
75
78
{
76
79
type : "null" ,
@@ -85,25 +88,30 @@ export const $ItemPublic = {
85
88
title : {
86
89
type : "string" ,
87
90
isRequired : true ,
91
+ maxLength : 255 ,
92
+ minLength : 1 ,
88
93
} ,
89
94
description : {
90
95
type : "any-of" ,
91
96
contains : [
92
97
{
93
98
type : "string" ,
99
+ maxLength : 255 ,
94
100
} ,
95
101
{
96
102
type : "null" ,
97
103
} ,
98
104
] ,
99
105
} ,
100
106
id : {
101
- type : "number " ,
107
+ type : "string " ,
102
108
isRequired : true ,
109
+ format : "uuid" ,
103
110
} ,
104
111
owner_id : {
105
- type : "number " ,
112
+ type : "string " ,
106
113
isRequired : true ,
114
+ format : "uuid" ,
107
115
} ,
108
116
} ,
109
117
} as const
@@ -115,6 +123,8 @@ export const $ItemUpdate = {
115
123
contains : [
116
124
{
117
125
type : "string" ,
126
+ maxLength : 255 ,
127
+ minLength : 1 ,
118
128
} ,
119
129
{
120
130
type : "null" ,
@@ -126,6 +136,7 @@ export const $ItemUpdate = {
126
136
contains : [
127
137
{
128
138
type : "string" ,
139
+ maxLength : 255 ,
129
140
} ,
130
141
{
131
142
type : "null" ,
@@ -169,6 +180,8 @@ export const $NewPassword = {
169
180
new_password : {
170
181
type : "string" ,
171
182
isRequired : true ,
183
+ maxLength : 40 ,
184
+ minLength : 8 ,
172
185
} ,
173
186
} ,
174
187
} as const
@@ -191,10 +204,14 @@ export const $UpdatePassword = {
191
204
current_password : {
192
205
type : "string" ,
193
206
isRequired : true ,
207
+ maxLength : 40 ,
208
+ minLength : 8 ,
194
209
} ,
195
210
new_password : {
196
211
type : "string" ,
197
212
isRequired : true ,
213
+ maxLength : 40 ,
214
+ minLength : 8 ,
198
215
} ,
199
216
} ,
200
217
} as const
@@ -204,6 +221,8 @@ export const $UserCreate = {
204
221
email : {
205
222
type : "string" ,
206
223
isRequired : true ,
224
+ format : "email" ,
225
+ maxLength : 255 ,
207
226
} ,
208
227
is_active : {
209
228
type : "boolean" ,
@@ -218,6 +237,7 @@ export const $UserCreate = {
218
237
contains : [
219
238
{
220
239
type : "string" ,
240
+ maxLength : 255 ,
221
241
} ,
222
242
{
223
243
type : "null" ,
@@ -227,6 +247,8 @@ export const $UserCreate = {
227
247
password : {
228
248
type : "string" ,
229
249
isRequired : true ,
250
+ maxLength : 40 ,
251
+ minLength : 8 ,
230
252
} ,
231
253
} ,
232
254
} as const
@@ -236,6 +258,8 @@ export const $UserPublic = {
236
258
email : {
237
259
type : "string" ,
238
260
isRequired : true ,
261
+ format : "email" ,
262
+ maxLength : 255 ,
239
263
} ,
240
264
is_active : {
241
265
type : "boolean" ,
@@ -250,15 +274,17 @@ export const $UserPublic = {
250
274
contains : [
251
275
{
252
276
type : "string" ,
277
+ maxLength : 255 ,
253
278
} ,
254
279
{
255
280
type : "null" ,
256
281
} ,
257
282
] ,
258
283
} ,
259
284
id : {
260
- type : "number " ,
285
+ type : "string " ,
261
286
isRequired : true ,
287
+ format : "uuid" ,
262
288
} ,
263
289
} ,
264
290
} as const
@@ -268,16 +294,21 @@ export const $UserRegister = {
268
294
email : {
269
295
type : "string" ,
270
296
isRequired : true ,
297
+ format : "email" ,
298
+ maxLength : 255 ,
271
299
} ,
272
300
password : {
273
301
type : "string" ,
274
302
isRequired : true ,
303
+ maxLength : 40 ,
304
+ minLength : 8 ,
275
305
} ,
276
306
full_name : {
277
307
type : "any-of" ,
278
308
contains : [
279
309
{
280
310
type : "string" ,
311
+ maxLength : 255 ,
281
312
} ,
282
313
{
283
314
type : "null" ,
@@ -294,6 +325,8 @@ export const $UserUpdate = {
294
325
contains : [
295
326
{
296
327
type : "string" ,
328
+ format : "email" ,
329
+ maxLength : 255 ,
297
330
} ,
298
331
{
299
332
type : "null" ,
@@ -313,6 +346,7 @@ export const $UserUpdate = {
313
346
contains : [
314
347
{
315
348
type : "string" ,
349
+ maxLength : 255 ,
316
350
} ,
317
351
{
318
352
type : "null" ,
@@ -324,6 +358,8 @@ export const $UserUpdate = {
324
358
contains : [
325
359
{
326
360
type : "string" ,
361
+ maxLength : 40 ,
362
+ minLength : 8 ,
327
363
} ,
328
364
{
329
365
type : "null" ,
@@ -340,6 +376,7 @@ export const $UserUpdateMe = {
340
376
contains : [
341
377
{
342
378
type : "string" ,
379
+ maxLength : 255 ,
343
380
} ,
344
381
{
345
382
type : "null" ,
@@ -351,6 +388,8 @@ export const $UserUpdateMe = {
351
388
contains : [
352
389
{
353
390
type : "string" ,
391
+ format : "email" ,
392
+ maxLength : 255 ,
354
393
} ,
355
394
{
356
395
type : "null" ,
0 commit comments