X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FJSONSchema.pm;fp=src%2FPVE%2FJSONSchema.pm;h=2802e072128a9a2bc8fcc95190c08ca0cae7d2c2;hp=50a08243295ab63b617671344ac2d3f764d7710d;hb=a8117ff3d86ba5de9ae9e7e43d3d5514d432e9cb;hpb=731950fd1c0d80c4aea86e8f265e62a6ab740e36 diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 50a0824..2802e07 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -183,6 +183,13 @@ sub parse_storage_id { return parse_id($storeid, 'storage', $noerr); } +PVE::JSONSchema::register_format('acme-plugin-id', \&parse_acme_plugin_id); +sub parse_acme_plugin_id { + my ($pluginid, $noerr) = @_; + + return parse_id($pluginid, 'ACME plugin', $noerr); +} + sub parse_id { my ($id, $type, $noerr) = @_;