@@ -150,7 +150,7 @@ type ParseDataRequestOptions<
150
150
TRelationshipsSchema extends z . SomeZodObject | undefined ,
151
151
> = {
152
152
type : TType ;
153
- attributesSchema : TAttributesSchema ;
153
+ attributesSchema ? : TAttributesSchema ;
154
154
relationshipsSchema ?: TRelationshipsSchema ;
155
155
} ;
156
156
@@ -214,7 +214,7 @@ const validateContentType = (context: Context): void => {
214
214
const parseDataRequest = <
215
215
TIdSchema extends z . ZodType < unknown > ,
216
216
TType extends string ,
217
- TAttributesSchema extends z . SomeZodObject ,
217
+ TAttributesSchema extends z . SomeZodObject | undefined ,
218
218
TRelationshipsSchema extends z . SomeZodObject | undefined ,
219
219
> (
220
220
idSchema : TIdSchema ,
@@ -276,7 +276,7 @@ export type ParseCreateRequestResult<
276
276
277
277
export const parseCreateRequest = <
278
278
TType extends string ,
279
- TAttributesSchema extends z . SomeZodObject ,
279
+ TAttributesSchema extends z . SomeZodObject | undefined ,
280
280
TRelationshipsSchema extends z . SomeZodObject | undefined ,
281
281
> (
282
282
koaContext : Context ,
@@ -287,14 +287,14 @@ export const parseCreateRequest = <
287
287
288
288
export type ParseUpdateRequestOptions <
289
289
TType extends string ,
290
- TAttributesSchema extends z . SomeZodObject ,
290
+ TAttributesSchema extends z . SomeZodObject | undefined ,
291
291
TRelationshipsSchema extends z . SomeZodObject | undefined ,
292
292
> = ParseDataRequestOptions < TType , TAttributesSchema , TRelationshipsSchema > ;
293
293
294
294
export type ParseUpdateRequestResult <
295
295
TId extends string ,
296
296
TType extends string ,
297
- TAttributesSchema extends z . SomeZodObject ,
297
+ TAttributesSchema extends z . SomeZodObject | undefined ,
298
298
TRelationshipsSchema extends z . SomeZodObject | undefined ,
299
299
> = ParseDataRequestResult < z . ZodType < TId > , TType , TAttributesSchema , TRelationshipsSchema > & {
300
300
id : TId ;
@@ -303,7 +303,7 @@ export type ParseUpdateRequestResult<
303
303
export const parseUpdateRequest = <
304
304
TId extends string ,
305
305
TType extends string ,
306
- TAttributesSchema extends z . SomeZodObject ,
306
+ TAttributesSchema extends z . SomeZodObject | undefined ,
307
307
TRelationshipsSchema extends z . SomeZodObject | undefined ,
308
308
> (
309
309
id : TId ,
0 commit comments