mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 08:36:01 +00:00
updated schemas, fixed tests, skipping flow tests for now
This commit is contained in:
@@ -7,7 +7,7 @@ import { s } from "core/object/schema";
|
||||
|
||||
export const dateFieldConfigSchema = s
|
||||
.strictObject({
|
||||
type: s.string({ enum: ["date", "datetime", "week"] }),
|
||||
type: s.string({ enum: ["date", "datetime", "week"], default: "date" }),
|
||||
timezone: s.string(),
|
||||
min_date: s.string(),
|
||||
max_date: s.string(),
|
||||
|
||||
@@ -27,7 +27,7 @@ export const baseFieldConfigSchema = s
|
||||
.strictObject({
|
||||
label: s.string(),
|
||||
description: s.string(),
|
||||
required: s.boolean(),
|
||||
required: s.boolean({ default: false }),
|
||||
fillable: s.anyOf([
|
||||
s.boolean({ title: "Boolean" }),
|
||||
s.array(s.string({ enum: ActionContext }), { title: "Context", uniqueItems: true }),
|
||||
|
||||
@@ -98,6 +98,7 @@ export function fieldTestSuite(
|
||||
test("toJSON", async () => {
|
||||
const _config = {
|
||||
..._requiredConfig,
|
||||
required: false,
|
||||
};
|
||||
|
||||
function fieldJson(field: Field) {
|
||||
|
||||
Reference in New Issue
Block a user