update to schema changes in proxmox

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-02-24 14:50:08 +01:00
parent 0dadf66dc7
commit 3554fe6480

View File

@ -218,11 +218,7 @@ pub fn dump_schema(schema: &Schema) -> Value {
data data
} }
pub fn dump_property_schema<I>( pub fn dump_property_schema(param: &dyn ObjectSchemaType) -> Value {
param: &dyn ObjectSchemaType<PropertyIter = I>,
) -> Value
where I: Iterator<Item = &'static SchemaPropertyEntry>,
{
let mut properties = json!({}); let mut properties = json!({});
for (prop, optional, schema) in param.properties() { for (prop, optional, schema) in param.properties() {