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 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;
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue