make context optional

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-11-22 08:54:22 -06:00
parent b1b051dc2f
commit 0fa5152081
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View file

@ -1,7 +1,6 @@
use axum::response::IntoResponse; use axum::response::IntoResponse;
use reqwest::StatusCode; use reqwest::StatusCode;
use serde::Serialize; use serde::Serialize;
use serde_json::Value;
/// Chain evaluation modules /// Chain evaluation modules
pub mod chain; pub mod chain;

View file

@ -46,7 +46,7 @@ impl<O> IntoIterator for FlatArray<O> {
#[allow(missing_docs)] #[allow(missing_docs)]
pub struct Object { pub struct Object {
#[serde(rename = "@context")] #[serde(rename = "@context")]
pub context: FlatArray<Either<String, serde_json::Value>>, pub context: Option<FlatArray<Either<String, serde_json::Value>>>,
pub id: String, pub id: String,
#[serde(rename = "type")] #[serde(rename = "type")]
pub ty_: String, pub ty_: String,