Kaizen
Browse modulesFormsforms/sharedSchemas and constants

Variable: formFieldAssetSchema

const formFieldAssetSchema: ZodObject<{
  alt: ZodOptional<ZodString>;
  fileId: ZodOptional<ZodString>;
  filename: ZodOptional<ZodString>;
  mimeType: ZodOptional<ZodString>;
  url: ZodOptional<ZodString>;
}, $strip>;

Defined in: shared/forms/schemas.ts:26

Admin-attached asset reference for display-only fields (image, and — once the builder upload port lands — file-download). The asset is either a pasted url (available today, no infra) or an uploaded fileId the consumer resolves through its own file store (a later phase). alt / filename / mimeType are presentation metadata the consumer's renderer uses. Kept as a single shared shape so both display-only asset fields serialize identically.