src/api2/types.rs: define REMOTE_ID_SCHEMA here
This commit is contained in:
@ -7,6 +7,7 @@ use proxmox::api::{api, schema::*};
|
||||
|
||||
use proxmox::tools::{fs::replace_file, fs::CreateOptions};
|
||||
|
||||
use crate::api2::types::*;
|
||||
use crate::section_config::{SectionConfig, SectionConfigData, SectionConfigPlugin};
|
||||
|
||||
lazy_static! {
|
||||
@ -15,10 +16,6 @@ lazy_static! {
|
||||
|
||||
// fixme: define better schemas
|
||||
|
||||
pub const REMOTE_ID_SCHEMA: Schema = StringSchema::new("Remote ID.")
|
||||
.min_length(3)
|
||||
.schema();
|
||||
|
||||
pub const COMMENT_SCHEMA: Schema = StringSchema::new("Comment").schema();
|
||||
pub const REMOTE_HOST_SCHEMA: Schema = StringSchema::new("Host IP address or DNS name.").schema();
|
||||
pub const REMOTE_USERID_SCHEMA: Schema = StringSchema::new("User ID").schema();
|
||||
|
Reference in New Issue
Block a user