We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c55971 commit d207bdbCopy full SHA for d207bdb
packages/form/src/utils.ts
@@ -40,7 +40,7 @@ export function overwriteDefaultsInJsonSchema<C>(
40
schema: JSONSchemaType<C>,
41
defaults: C,
42
): JSONSchemaType<C> {
43
- const newSchema = structuredClone(schema);
+ const newSchema = JSON.parse(JSON.stringify(schema)) as JSONSchemaType<C>;
44
// TODO make more generic, now only handles .properties and .allOf[n].then.properties
45
for (const key in defaults) {
46
const val = defaults[key];
0 commit comments