This commit is contained in:
Ruben Fiszel
2025-02-04 09:29:52 +01:00
parent 4289193912
commit a3b73b4e59
2 changed files with 1 additions and 3 deletions
@@ -124,7 +124,7 @@
</div>
{/each}
</div>
{#if canEditResourceType || originalType == 'string[]'}
{#if canEditResourceType || originalType == 'string[]' || originalType == 'object[]'}
<div class="flex flex-row mb-1 mt-2">
<Button
color="light"
-2
View File
@@ -103,7 +103,6 @@ export function argSigToJsonSchemaType(
newS.format = `dynselect-${t.dynselect}`
} else if (typeof t !== 'string' && `list` in t) {
newS.type = 'array'
console.log(t.list)
if (t.list === 'int' || t.list === 'float') {
newS.items = { type: 'number' }
newS.originalType = 'number[]'
@@ -111,7 +110,6 @@ export function argSigToJsonSchemaType(
newS.items = { type: 'string', contentEncoding: 'base64' }
newS.originalType = 'bytes[]'
} else if (t.list && typeof t.list == 'object' && 'str' in t.list && t.list.str) {
console.log('str', t.list.str)
newS.items = { type: 'string', enum: t.list.str }
newS.originalType = 'enum[]'
} else if (t.list == 'string' || (t.list && typeof t.list == 'object' && 'str' in t.list)) {