diff --git a/proxmox-api-macro/tests/types.rs b/proxmox-api-macro/tests/types.rs index 82a4ca50..e6ceacf8 100644 --- a/proxmox-api-macro/tests/types.rs +++ b/proxmox-api-macro/tests/types.rs @@ -37,6 +37,7 @@ pub enum Selection { input: { properties: { arg: { type: OkString }, + selection: { type: Selection }, } }, returns: { type: Boolean }, @@ -44,7 +45,8 @@ pub enum Selection { /// Check a string. /// /// Returns: Whether the string was "ok". -pub fn string_check(arg: Value) -> Result { +pub fn string_check(arg: Value, selection: Selection) -> Result { let _ = arg; + let _ = selection; panic!("body") }