mirror of
https://git.proxmox.com/git/proxmox
synced 2025-04-29 13:56:13 +00:00
api-macro: re-order ObjectSchema fields to be sorted
this panics when running `cargo test` otherwise, as the api macro requires fields in `ObjectSchema`s to be sorted now. Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
This commit is contained in:
parent
f0b23def30
commit
ccb34b33e2
@ -183,11 +183,6 @@ fn router_do(item: TokenStream) -> Result<TokenStream, Error> {
|
|||||||
&::proxmox_schema::ObjectSchema::new(
|
&::proxmox_schema::ObjectSchema::new(
|
||||||
"An example of a struct with renamed fields.",
|
"An example of a struct with renamed fields.",
|
||||||
&[
|
&[
|
||||||
(
|
|
||||||
"test-string",
|
|
||||||
false,
|
|
||||||
&::proxmox_schema::StringSchema::new("A test string.").schema(),
|
|
||||||
),
|
|
||||||
(
|
(
|
||||||
"SomeOther",
|
"SomeOther",
|
||||||
true,
|
true,
|
||||||
@ -196,6 +191,12 @@ fn router_do(item: TokenStream) -> Result<TokenStream, Error> {
|
|||||||
)
|
)
|
||||||
.schema(),
|
.schema(),
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"test-string",
|
||||||
|
false,
|
||||||
|
&::proxmox_schema::StringSchema::new("A test string.").schema(),
|
||||||
|
),
|
||||||
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
.schema();
|
.schema();
|
||||||
|
Loading…
Reference in New Issue
Block a user