{#if displayJsonToggleHeader}
{
// Once the user has changed the input type, we should not change it back automatically
if (!hasIsListJsonChanged) {
hasIsListJsonChanged = true
}
evalValueToRaw()
isListJson = !isListJson
}}
checked={isListJson}
textClass="text-secondary"
size="xs"
options={{ left: 'json' }}
/>
{/if}
{@render fieldHeaderActions?.()}
Error loading json schema resource {format.substring('jsonschema-'.length)}, please
check if the resource exists and is a valid json schema.
See documentation
{:else}
{/if}
{/await}
{:else if inputCat == 'list' && !isListJson}
{/if}
{/each}
{#if value.length > itemsLimit}
{/if}
{:else if typeof value === 'string'}
{#if value.startsWith('$res:')}
{@render resourceInput()}
{:else}
Invalid string value: "{value}", expected array. Click add item to turn it
into an array.
{/if}
{/if}
{/key}
{/if}
{#if !displayHeader}
{
// Once the user has changed the input type, we should not change it back automatically
if (!hasIsListJsonChanged) {
hasIsListJsonChanged = true
}
evalValueToRaw()
isListJson = !isListJson
}}
checked={isListJson}
textClass="text-secondary"
size="xs"
options={{ left: 'json' }}
/>
{:else if inputCat == 'date'}
{#if format === 'date'}
{:else if format === 'naive-date-time'}
{:else}
{/if}
{:else if isRawStringEditor(inputCat)}
{#if disabled}
{:else}