diff --git a/src/api/schema.rs b/src/api/schema.rs index 99caa8c4..270d0983 100644 --- a/src/api/schema.rs +++ b/src/api/schema.rs @@ -644,50 +644,3 @@ fn test_query_boolean() { assert!(res.is_ok()); } - -/* -#[test] -fn test_shema1() { - static PARAMETERS1: PropertyMap = propertymap!{ - force => &Boolean!{ - description => "Test for boolean options." - }, - text1 => &ApiString!{ - description => "A simple text string.", - min_length => Some(10), - max_length => Some(30) - }, - count => &Integer!{ - description => "A counter for everything.", - minimum => Some(0), - maximum => Some(10) - }, - myarray1 => &Array!{ - description => "Test Array of simple integers.", - items => &PVE_VMID - }, - myarray2 => &Schema::Array(ArraySchema { - description: "Test Array of simple integers.", - optional: Some(false), - items: &Object!{description => "Empty Object."}, - }), - myobject => &Object!{ - description => "TEST Object.", - properties => &propertymap!{ - vmid => &PVE_VMID, - loop => &Integer!{ - description => "Totally useless thing.", - optional => Some(false) - } - } - }, - emptyobject => &Object!{description => "Empty Object."} - }; - - for (k, v) in PARAMETERS1.entries { - println!("Parameter: {} Value: {:?}", k, v); - } - - -} -*/