make context optional
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
b1b051dc2f
commit
0fa5152081
2 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
use axum::response::IntoResponse;
|
||||
use reqwest::StatusCode;
|
||||
use serde::Serialize;
|
||||
use serde_json::Value;
|
||||
|
||||
/// Chain evaluation modules
|
||||
pub mod chain;
|
||||
|
|
|
@ -46,7 +46,7 @@ impl<O> IntoIterator for FlatArray<O> {
|
|||
#[allow(missing_docs)]
|
||||
pub struct Object {
|
||||
#[serde(rename = "@context")]
|
||||
pub context: FlatArray<Either<String, serde_json::Value>>,
|
||||
pub context: Option<FlatArray<Either<String, serde_json::Value>>>,
|
||||
pub id: String,
|
||||
#[serde(rename = "type")]
|
||||
pub ty_: String,
|
||||
|
|
Loading…
Reference in a new issue