From fcfbf9504d7a3eea3e16de3c411a3f633ac3d7c8 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 20 May 2024 10:45:47 +0200 Subject: [PATCH] use RawValue for Flow value and hub script schema --- backend/windmill-common/src/flows.rs | 2 +- backend/windmill-common/src/scripts.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/windmill-common/src/flows.rs b/backend/windmill-common/src/flows.rs index e7986c4de4..cbc0d9bdf0 100644 --- a/backend/windmill-common/src/flows.rs +++ b/backend/windmill-common/src/flows.rs @@ -26,7 +26,7 @@ pub struct Flow { pub path: String, pub summary: String, pub description: String, - pub value: serde_json::Value, + pub value: sqlx::types::Json>, pub edited_by: String, pub edited_at: chrono::DateTime, pub archived: bool, diff --git a/backend/windmill-common/src/scripts.rs b/backend/windmill-common/src/scripts.rs index 54b3a0d47f..9e8450d99f 100644 --- a/backend/windmill-common/src/scripts.rs +++ b/backend/windmill-common/src/scripts.rs @@ -410,6 +410,6 @@ pub struct HubScript { pub content: String, pub lockfile: Option, pub language: ScriptLang, - pub schema: serde_json::Value, + pub schema: Box, pub summary: Option, }