Skip to content

Commit

Permalink
chore: basic fields must be unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
danielo515 committed Oct 25, 2023
1 parent 91aa99c commit 32df515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/formDefinition.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { parse, pipe } from "@std";
import * as E from "fp-ts/Either";
import { object, number, literal, type Output, is, array, string, union, optional, safeParse, minLength, toTrimmed, merge, any, ValiError } from "valibot";
import { object, number, literal, type Output, is, array, string, union, optional, safeParse, minLength, toTrimmed, merge, unknown, ValiError } from "valibot";
/**
* Here are the core logic around the main domain of the plugin,
* which is the form definition.
Expand Down Expand Up @@ -73,7 +73,7 @@ const FieldListSchema = array(FieldDefinitionSchema);
const FormDefinitionBasicSchema = object({
title: nonEmptyString('form title'),
name: nonEmptyString('form name'),
fields: array(any()),
fields: array(unknown()),
});

/**
Expand Down

0 comments on commit 32df515

Please sign in to comment.