Simplify generated schema for Map types
This commit is contained in:
parent
c6bd03435d
commit
1cc9bb5564
1 changed files with 2 additions and 2 deletions
|
@ -168,8 +168,8 @@ macro_rules! map_impl {
|
|||
{
|
||||
let mut extra_properties = Map::new();
|
||||
extra_properties.insert(
|
||||
"patternProperties".to_owned(),
|
||||
json!({"": T::make_schema()})
|
||||
"additionalProperties".to_owned(),
|
||||
json!(T::make_schema())
|
||||
);
|
||||
Schema {
|
||||
instance_type: Some(InstanceType::Object.into()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue