Forward RawValue's JsonSchema impl to Value

This commit is contained in:
Graham Esau 2023-08-28 12:26:15 +01:00
parent c487bbb9e7
commit e0c867cd6a

View file

@ -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);