Forward RawValue's JsonSchema impl to Value
This commit is contained in:
parent
c487bbb9e7
commit
e0c867cd6a
1 changed files with 1 additions and 11 deletions
|
@ -35,14 +35,4 @@ impl JsonSchema for Number {
|
|||
}
|
||||
|
||||
#[cfg(feature = "raw_value")]
|
||||
impl JsonSchema for serde_json::value::RawValue {
|
||||
no_ref_schema!();
|
||||
|
||||
fn schema_name() -> String {
|
||||
"AnyValue".to_owned()
|
||||
}
|
||||
|
||||
fn json_schema(_: &mut SchemaGenerator) -> Schema {
|
||||
Schema::Bool(true)
|
||||
}
|
||||
}
|
||||
forward_impl!(serde_json::value::RawValue => Value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue