X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2FPVE%2FJSONSchema.pm;h=debbbb5904004936e4553217fecc3f363db14a05;hb=8b6e737a752d90cfaf3ecec2dcbc99ffba5a626d;hp=021e4e0784413037b410e551d4f9d0c82b120c77;hpb=05185ea25a0fabbd5a7071aa13c9b61de8f73861;p=pve-common.git diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 021e4e0..debbbb5 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -720,7 +720,7 @@ sub check_object { check_prop($value, $requires, $path, $errors); } elsif (!defined($value->{$requires})) { add_error($errors, $path ? "$path.$requires" : $requires, - "missing property - '$newpath' requiers this property"); + "missing property - '$newpath' requires this property"); } } @@ -1678,10 +1678,10 @@ sub schema_get_type_text { } elsif ($type eq 'integer' || $type eq 'number') { # NOTE: always access values as number (avoid converion to string) if (defined($phash->{minimum}) && defined($phash->{maximum})) { - return "$type (" . ($phash->{minimum} + 0) . "-" . + return "$type (" . ($phash->{minimum} + 0) . " - " . ($phash->{maximum} + 0) . ")"; } elsif (defined($phash->{minimum})) { - return "$type (" . ($phash->{minimum} + 0) . "- N)"; + return "$type (" . ($phash->{minimum} + 0) . " - N)"; } elsif (defined($phash->{maximum})) { return "$type (-N - " . ($phash->{maximum} + 0) . ")"; }