mirror of
https://git.proxmox.com/git/proxmox
synced 2025-06-14 06:34:53 +00:00
router: test: sort object schema properties
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
be57fb0122
commit
c99a31c66f
@ -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(),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user