[pve-devel] [PATCH v2 0/2] Add format validator support

Stefan Reiter s.reiter at proxmox.com
Wed Jun 17 16:44:11 CEST 2020


Version 2 of an older series, fixes "-cpu" format documentation in man pages by
introducing format validators, which allow custom validation functions to be
used together with format hashes.

The plan is to change occurances of hash based formats in parse_property_string
to named formats, so that future validators would be called. Such validators
would enable many formats which currently have no representation in the docs to
be included there.

v1 -> v2:
* Do validation in parse_property_string
* Re-refactor check_format based on Fabian's review
* Validate "cputype" in "pve-cpu-conf", not "pve-vm-cpu-conf"
* Use parse_property_string instead of check_format for parsing in CPUConfig


common: Stefan Reiter (1):
  JSONSchema: add format validator support and cleanup check_format

 src/PVE/JSONSchema.pm | 87 +++++++++++++++++++++++++++----------------
 1 file changed, 55 insertions(+), 32 deletions(-)

qemu-server: Stefan Reiter (1):
  fix #2671: include CPU format in man page again

 PVE/QemuServer/CPUConfig.pm | 56 ++++++++++++-------------------------
 1 file changed, 18 insertions(+), 38 deletions(-)

-- 
2.20.1




More information about the pve-devel mailing list