Skip to content

Commit

Permalink
Forward RawValue's JsonSchema impl to Value
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed Aug 28, 2023
1 parent c487bbb commit e0c867c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions schemars/src/json_schema_impls/serdejson.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit e0c867c

Please sign in to comment.