diff --git a/backend/openapi.yaml b/backend/openapi.yaml index 33f92c1eaf..9705eb7a78 100644 --- a/backend/openapi.yaml +++ b/backend/openapi.yaml @@ -1646,8 +1646,7 @@ paths: type: string lockfile: type: string - schema: - type: string + schema: {} language: type: string enum: [deno, python3, go] diff --git a/frontend/src/lib/scripts.ts b/frontend/src/lib/scripts.ts index 7c69329709..fd542846e1 100644 --- a/frontend/src/lib/scripts.ts +++ b/frontend/src/lib/scripts.ts @@ -13,7 +13,7 @@ export async function loadSchema(path: string): Promise { await inferArgs('deno', content ?? '', newSchema) return newSchema } else { - return JSON.parse(schema ?? "{}") + return schema ?? emptySchema() } } else { const script = await ScriptService.getScriptByPath({