From 0fa5152081af1024dab398581f8efb0c1a3d14cb Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Fri, 22 Nov 2024 08:54:22 -0600 Subject: [PATCH] make context optional Signed-off-by: eternal-flame-AD --- src/evaluate/mod.rs | 1 - src/model/ap.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/evaluate/mod.rs b/src/evaluate/mod.rs index 3f8efa6..9c50ac5 100644 --- a/src/evaluate/mod.rs +++ b/src/evaluate/mod.rs @@ -1,7 +1,6 @@ use axum::response::IntoResponse; use reqwest::StatusCode; use serde::Serialize; -use serde_json::Value; /// Chain evaluation modules pub mod chain; diff --git a/src/model/ap.rs b/src/model/ap.rs index 0e153bb..a99beba 100644 --- a/src/model/ap.rs +++ b/src/model/ap.rs @@ -46,7 +46,7 @@ impl IntoIterator for FlatArray { #[allow(missing_docs)] pub struct Object { #[serde(rename = "@context")] - pub context: FlatArray>, + pub context: Option>>, pub id: String, #[serde(rename = "type")] pub ty_: String,