use proxmox 0.1.25, use new EnumEntry feature

This commit is contained in:
Dietmar Maurer
2020-04-29 13:01:24 +02:00
parent acb428cdec
commit bc0d03885c
8 changed files with 79 additions and 114 deletions

View File

@ -6,7 +6,7 @@ use proxmox::api::{api, Permission};
use proxmox::api::router::Router;
use crate::api2::types::*;
use crate::config::acl::ROLE_NAMES;
use crate::config::acl::{Role, ROLE_NAMES};
#[api(
returns: {
@ -17,7 +17,7 @@ use crate::config::acl::ROLE_NAMES;
description: "User name with description.",
properties: {
role: {
schema: ACL_ROLE_SCHEMA,
type: Role,
},
comment: {
schema: SINGLE_LINE_COMMENT_SCHEMA,