(open = false)}>
{#each modes as mode} {@const item = radioGroup.getItem(mode)}
{mode}
{/each}
{#if radioGroup.value === "form"}
updateSchema({ name: value }))} />

Properties

{#if schemaObj.current.schema?.properties}
{#each Object.entries(schemaObj.current.schema.properties) as [propertyName, propertyDefinition], index (index)}
{ const updatedProperties = { ...schemaObj.current.schema?.properties }; if (!updatedProperties || !updatedProperties[propertyName]) return; updatedProperties[value] = updatedProperties[propertyName]; delete updatedProperties[propertyName]; updateSchemaNested({ properties: updatedProperties }); })} />
{ const updatedProperties = { ...schemaObj.current.schema?.properties }; if (!updatedProperties || !updatedProperties[propertyName]) return; updatedProperties[propertyName].description = value; updateSchemaNested({ properties: updatedProperties }); })} />
{ let updatedRequired = [...(schemaObj.current.schema?.required || [])]; if (e.currentTarget.checked) { if (!updatedRequired.includes(propertyName)) { updatedRequired.push(propertyName); } } else { updatedRequired = updatedRequired.filter(name => name !== propertyName); } updateSchemaNested({ required: updatedRequired }); }} />
{:else}

No properties defined yet.

{/each}
{:else}

No properties defined yet.

{/if}

Options

updateSchemaNested({ additionalProperties: e.currentTarget.checked })} />

If unchecked, only properties defined in the schema are allowed.

updateSchema({ strict: e.currentTarget.checked })} />

Enforces stricter validation rules.

{:else}
{/if} {#snippet footer()} {/snippet}