mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-22 20:52:27 +00:00
implement generic openapi type for serde_json::Value
This commit is contained in:
parent
a2651d073c
commit
e66968f63d
1 changed files with 13 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue