From a1803bb780e22e1e75b7a7eab0e818b502413971 Mon Sep 17 00:00:00 2001 From: Sidharth Rajaram Date: Tue, 22 Oct 2024 19:08:32 -0700 Subject: [PATCH] Add json_schema as an alias for JSON Grammar --- router/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/src/lib.rs b/router/src/lib.rs index fdbd931e..3acdcfcc 100644 --- a/router/src/lib.rs +++ b/router/src/lib.rs @@ -120,7 +120,7 @@ pub(crate) enum GrammarType { /// JSON Schema is a declarative language that allows to annotate JSON documents /// with types and descriptions. #[serde(rename = "json")] - #[serde(alias = "json_object")] + #[serde(alias = "json_object", alias = "json_schema")] #[schema(example = json ! ({"properties": {"location":{"type": "string"}}}))] Json(serde_json::Value), #[serde(rename = "regex")]