Re: Extraneous nesting in QAPI schema

2020-01-17 Thread Eric Blake
On 12/16/19 10:59 AM, Markus Armbruster wrote: Extra nesting is merely another set of braces in QMP. It's bloody annoying in QAPIfied CLI using dotted keys syntax. Example: QMP command {"execute": "chardev-add", Let's start with trying to understand the sources of extra nesting. T

Re: Extraneous nesting in QAPI schema

2020-01-16 Thread Christophe de Dinechin
> On 16 Dec 2019, at 17:59, Markus Armbruster wrote: > > Kevin suggested to investigate a more generic flattening solutions. > > Of course, flattening is only possible as long as there are no name > clashes. Or you could reverse the name sequence and allow the “upper” layers to disambiguate.

Extraneous nesting in QAPI schema

2019-12-16 Thread Markus Armbruster
Extra nesting is merely another set of braces in QMP. It's bloody annoying in QAPIfied CLI using dotted keys syntax. Example: QMP command {"execute": "chardev-add", "arguments": { "id": "char0", "backend": { "type": "socket", "data": {