> On September 22, 2015 at 8:03 AM Dietmar Maurer <diet...@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? _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel