fix: fix base64 assignment (file input)

This commit is contained in:
Ruben Fiszel
2023-11-19 12:36:07 +01:00
parent 1fc13c8e97
commit 6cdd2bceee
5 changed files with 9 additions and 3 deletions

View File

@@ -101,7 +101,7 @@
defaultValue={schema.properties[argName].default}
bind:enum_={schema.properties[argName].enum}
bind:format={schema.properties[argName].format}
contentEncoding={schema.properties[argName].contentEncoding}
bind:contentEncoding={schema.properties[argName].contentEncoding}
properties={schema.properties[argName].properties}
nestedRequired={schema.properties[argName].required}
bind:itemsType={schema.properties[argName].items}

View File

@@ -256,7 +256,7 @@
</div>
<svelte:fragment slot="actions">
<Button
color="blue"
color="dark"
disabled={!property.name || error != ''}
on:click={() => {
dispatch('save', property)

View File

@@ -786,7 +786,7 @@
</Drawer>
<div class="flex flex-col h-screen">
<div class="flex h-full max-h-12 items-center px-4 border-b">
<div class="flex h-12 items-center px-4">
<div class="justify-between flex gap-2 lg:gap-8 w-full items-center">
<div class="flex flex-row gap-2">
<div class="center-center">

View File

@@ -73,6 +73,11 @@
['Pattern', 'pattern']
]}
bind:value={kind}
on:change={(e) => {
if (e.detail != 'enum') {
enum_ = undefined
}
}}
/>
<div class="my-2" />

View File

@@ -123,6 +123,7 @@ function argSigToJsonSchemaType(
| { object: { key: string; typ: any }[] },
oldS: SchemaProperty
): void {
console.log(JSON.st)
const newS: SchemaProperty = { type: '' }
if (t === 'int') {
newS.type = 'integer'