Variable PublicationMetadataSchemaConst

PublicationMetadataSchema: z.ZodType<PublicationMetadata, z.ZodTypeDef, object> = ...

A union of all publication metadata schemas.

Example

with parse:

PublicationMetadataSchema.parse(valid); // => PublicationMetadata

PublicationMetadataSchema.parse(invalid); // => throws ZodError

Example

with safeParse:

PublicationMetadataSchema.safeParse(valid);
// => { success: true, data: PublicationMetadata }

PublicationMetadataSchema.safeParse(invalid);
// => { success: false, error: ZodError }