fix: fix base64 assignment (file input)
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -256,7 +256,7 @@
|
||||
</div>
|
||||
<svelte:fragment slot="actions">
|
||||
<Button
|
||||
color="blue"
|
||||
color="dark"
|
||||
disabled={!property.name || error != ''}
|
||||
on:click={() => {
|
||||
dispatch('save', property)
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -73,6 +73,11 @@
|
||||
['Pattern', 'pattern']
|
||||
]}
|
||||
bind:value={kind}
|
||||
on:change={(e) => {
|
||||
if (e.detail != 'enum') {
|
||||
enum_ = undefined
|
||||
}
|
||||
}}
|
||||
/>
|
||||
<div class="my-2" />
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user