From 0c20da52566eebedffda352d6a0cff51109113c7 Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 20 Nov 2024 10:34:26 +0000 Subject: [PATCH] fix metamada defaults --- matching_engine/src/generator_lib/generator_store.rs | 2 ++ matching_engine/src/market_metadata.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/matching_engine/src/generator_lib/generator_store.rs b/matching_engine/src/generator_lib/generator_store.rs index bbbab9f..d42996c 100644 --- a/matching_engine/src/generator_lib/generator_store.rs +++ b/matching_engine/src/generator_lib/generator_store.rs @@ -174,9 +174,11 @@ pub struct GeneratorMeta { repo_url: Option, /// Current version of the generator or application. + #[serde(default)] version: Option, /// Categories that classify the generator or application. + #[serde(default)] categories: Vec, /// Tags for better searchability and organization. diff --git a/matching_engine/src/market_metadata.rs b/matching_engine/src/market_metadata.rs index d7441ec..bd89ce4 100644 --- a/matching_engine/src/market_metadata.rs +++ b/matching_engine/src/market_metadata.rs @@ -50,9 +50,11 @@ pub struct MarketSetupData { license: Option, /// Categories that classify the zkApp. + #[serde(default)] categories: Vec, /// Tags for better searchability and organization. + #[serde(default)] tags: Vec, /// Contact email for support or inquiries.