[pve-devel] [RFC pve-common 0/4] Typetext generation

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Sep 22 10:46:08 CEST 2015


> On September 22, 2015 at 8:03 AM Dietmar Maurer <dietmar at proxmox.com> wrote:
> > Should we maybe add general support for hash-refs as `format` for
> > string types?
> 
> Yes, I think that is a great idea.

I wonder though if it makes sense to then cache the parsed object somewhere
to avoid parsing the string twice?
JSONSchema::parse_config simply parses (almost - it does convert booleans to
1/0),
then calls check_prop, which would have to parse the string in order to verify
the
schema. It could replace or add the parsed hash, though, should we do that?




More information about the pve-devel mailing list