1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-23 04:52:28 +00:00

implement generic openapi type for serde_json::Value

This commit is contained in:
Dominic 2020-01-13 02:56:28 +01:00
parent a2651d073c
commit e66968f63d
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -280,3 +280,16 @@ str_types!(format = DateTime, DateTime<FixedOffset>, DateTime<Local>, DateTime<U
#[cfg(feature = "uuid")]
str_types!(format_str = "uuid", Uuid);
impl OpenapiType for serde_json::Value
{
fn schema() -> OpenapiSchema
{
OpenapiSchema {
nullable: true,
name: None,
schema: SchemaKind::Any(Default::default()),
dependencies: Default::default()
}
}
}