Skip to content

Commit

Permalink
schema const
Browse files Browse the repository at this point in the history
  • Loading branch information
softmarshmallow committed May 13, 2024
1 parent 50488e5 commit fae53d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/forms/types/zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ export const zJSONField = z.object({
});

export const zJSONForm = z.object({
$schema: z
.literal("https://forms.grida.co/schema/form.schema.json")
.describe("https://forms.grida.co/schema/form.schema.json"),
title: z.string().optional().describe("User facing form title"),
name: z.string().describe("HTML5 form `name` attribute"),
description: z.string().optional().describe("description for the editor"),
Expand Down

0 comments on commit fae53d0

Please sign in to comment.