{#if !viewJsonSchema}
{#if schema.properties && Object.keys(schema.properties).length > 0 && schema.required}
| Name |
Type |
{#if !lightMode}
Default |
Description |
{/if}
|
{#key schema.required}
{#each schemaPropertiesToDisplay(schema) as displayInfo (displayInfoKey(displayInfo))}
{/each}
{/key}
{:else}
This schema has no arguments.
{/if}
{:else}
{
try {
schema = JSON.parse(schemaString)
error = ''
} catch (err) {
error = err.message
}
}}
bind:code={schemaString}
lang="json"
class="small-editor"
/>
{#if !emptyString(error)}
{error}
{:else}
{/if}
{/if}