From e66968f63ddffab07d1e27635db362565af29e8d Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 13 Jan 2020 02:56:28 +0100 Subject: [PATCH] implement generic openapi type for serde_json::Value --- gotham_restful/src/openapi/types.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gotham_restful/src/openapi/types.rs b/gotham_restful/src/openapi/types.rs index 77f711a..b04dd56 100644 --- a/gotham_restful/src/openapi/types.rs +++ b/gotham_restful/src/openapi/types.rs @@ -280,3 +280,16 @@ str_types!(format = DateTime, DateTime, DateTime, DateTime OpenapiSchema + { + OpenapiSchema { + nullable: true, + name: None, + schema: SchemaKind::Any(Default::default()), + dependencies: Default::default() + } + } +}