{#if format === 'resource-s3_object'}
{:else if value == undefined || typeof value === 'string'}
valueToPath(),
(v) => {
if (v == undefined) {
value = undefined
} else {
value = `$res:${v}`
}
}
}
initialValue={typeof defaultValue == 'string' && defaultValue.startsWith('$res:')
? defaultValue.substr('$res:'.length)
: defaultValue}
resourceType={format.split('-').length > 1 ? format.substring('resource-'.length) : undefined}
{showSchemaExplorer}
/>
{:else}
{#await import('$lib/components/JsonEditor.svelte')}
{:then Module}
{/await}
{/if}