diff --git a/proxmox-api-macro/src/lib.rs b/proxmox-api-macro/src/lib.rs index bc05c74f..e4a0ea98 100644 --- a/proxmox-api-macro/src/lib.rs +++ b/proxmox-api-macro/src/lib.rs @@ -183,12 +183,7 @@ fn router_do(item: TokenStream) -> Result { &::proxmox_schema::ObjectSchema::new( "An example of a struct with renamed fields.", &[ - ( - "test-string", - false, - &::proxmox_schema::StringSchema::new("A test string.").schema(), - ), - ( + ( "SomeOther", true, &::proxmox_schema::StringSchema::new( @@ -196,6 +191,12 @@ fn router_do(item: TokenStream) -> Result { ) .schema(), ), + ( + "test-string", + false, + &::proxmox_schema::StringSchema::new("A test string.").schema(), + ), + ], ) .schema();