We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a649fd commit ed0a797Copy full SHA for ed0a797
.changeset/tangy-queens-doubt.md
@@ -0,0 +1,5 @@
1
+---
2
+"@sjsf/form": patch
3
4
+
5
+Fix oneOf/anyOf fields
packages/form/src/fields/combination.svelte
@@ -64,8 +64,8 @@
64
const restType = getSimpleSchemaType(restSchema);
65
return {
66
...config,
67
- schema: restType === "unknown" ? {} : restSchema,
68
- };
+ schema: restType === "unknown" ? { type: "object" } : restSchema,
+ } satisfies Config;
69
});
70
const RestSchemaField = $derived(
71
restFieldConfig && getFieldComponent(ctx, restFieldConfig)
0 commit comments