fix: clearer note about dropping metadata and locations in event-type
This commit is contained in:
1 parent
368e6eb0fa
commit
9cb2f9bc70
1 file changed
+1
-1
@@ -12,7 +12,7 @@ const schemaEventTypeRequiredParams = z.object({
|
||||
});
|
||||
|
||||
export const schemaEventTypeBodyParams = schemaEventTypeBaseBodyParams.merge(schemaEventTypeRequiredParams);
|
||||
// Omitting those two (locations/ metadata) because the validations where choking at array and JSON object. add them later if needed
|
||||
// @NOTE: Removing locations and metadata properties before validation, add them later if required
|
||||
export const schemaEventTypePublic = EventType.omit({ locations: true, metadata: true });
|
||||
|
||||
export const withValidEventType = withValidation({
|
||||
|
||||
Reference in new issue
Block a user