diff --git a/router/src/lib.rs b/router/src/lib.rs index 3c1a01b3..e45bf11f 100644 --- a/router/src/lib.rs +++ b/router/src/lib.rs @@ -230,7 +230,8 @@ pub(crate) enum GrammarType { /// /// JSON Schema is a declarative language that allows to annotate JSON documents /// with types and descriptions. - #[serde(rename = "json")] + #[serde(rename = "json_schema")] + #[serde(alias = "json")] #[serde(alias = "json_object")] #[schema(example = json ! ({"properties": {"location":{"type": "string"}}}))] Json(serde_json::Value),