]> git.proxmox.com Git - proxmox.git/blobdiff - proxmox-schema/src/schema.rs
schema: drop periods after errors
[proxmox.git] / proxmox-schema / src / schema.rs
index 257cedc8954a457854296b0b133ca8bbbe77fcee..b71720bb440d8b4ad10fe8741a306c210c69e68d 100644 (file)
@@ -834,7 +834,7 @@ pub trait ObjectSchemaType {
             } else if !additional_properties {
                 errors.push(
                     key.to_string(),
-                    format_err!("schema does not allow additional properties."),
+                    format_err!("schema does not allow additional properties"),
                 );
             }
         }
@@ -843,7 +843,7 @@ pub trait ObjectSchemaType {
             if !(*optional) && data[name] == Value::Null {
                 errors.push(
                     name.to_string(),
-                    format_err!("property is missing and it is not optional."),
+                    format_err!("property is missing and it is not optional"),
                 );
             }
         }