use proxmox::const_regex;
use proxmox::{IPRE, IPRE_BRACKET, IPV4RE, IPV6RE, IPV4OCTET, IPV6H16, IPV6LS32};
+use pbs_datastore::catalog::CatalogEntryType;
+
use crate::{
backup::{
CryptMode,
Fingerprint,
DirEntryAttribute,
- CatalogEntryType,
},
server::UPID,
config::acl::Role,
.max_length(64)
.schema();
+pub const REALM_ID_SCHEMA: Schema = StringSchema::new("Realm name.")
+ .format(&PROXMOX_SAFE_ID_FORMAT)
+ .min_length(2)
+ .max_length(32)
+ .schema();
+
// Complex type definitions
#[api(