router: test: sort object schema properties

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2025-01-14 10:34:28 +01:00
parent be57fb0122
commit c99a31c66f

View File

@ -21,6 +21,11 @@ const API_METHOD_SIMPLE1: ApiMethod = ApiMethod::new(
&ObjectSchema::new( &ObjectSchema::new(
"Simple API method with one required and one optional argument.", "Simple API method with one required and one optional argument.",
&[ &[
(
"another-required-arg",
false,
&StringSchema::new("A second required string argument.").schema(),
),
( (
"optional-arg", "optional-arg",
true, true,
@ -33,11 +38,6 @@ const API_METHOD_SIMPLE1: ApiMethod = ApiMethod::new(
false, false,
&StringSchema::new("Required string argument.").schema(), &StringSchema::new("Required string argument.").schema(),
), ),
(
"another-required-arg",
false,
&StringSchema::new("A second required string argument.").schema(),
),
], ],
), ),
); );