Re: [Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-04-01 Thread Eric Blake
On 04/01/2015 06:17 AM, Eric Blake wrote: >> I guess JSON / Python was chosen as QAPI schema language to save us the >> bother of defining a syntax and building the tools to work with it, like >> an Emacs mode. JSON's not exactly my favourite choice, but at least >> it's not XML. >> >> What we ha

Re: [Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-04-01 Thread Markus Armbruster
Eric Blake writes: > On 04/01/2015 03:33 AM, Markus Armbruster wrote: > Longhand: # mandatory 'name': { 'type': 'str' } # optional, with a default 'flag': { 'type': 'bool', 'default': true } # optional, no default 'string': { 'type':

Re: [Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-04-01 Thread Markus Armbruster
Kevin Wolf writes: > Am 01.04.2015 um 13:03 hat Markus Armbruster geschrieben: >> Kevin Wolf writes: >> >> > Am 01.04.2015 um 11:33 hat Markus Armbruster geschrieben: >> >> Kevin Wolf writes: >> >> >> >> > Am 31.03.2015 um 22:09 hat Markus Armbruster geschrieben: >> >> >> Kevin Wolf writes:

Re: [Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-04-01 Thread Eric Blake
On 04/01/2015 03:33 AM, Markus Armbruster wrote: >>> Longhand: >>> >>> # mandatory >>> 'name': { 'type': 'str' } >>> # optional, with a default >>> 'flag': { 'type': 'bool', 'default': true } >>> # optional, no default >>> 'string': { 'type': 'str', 'default': null } >>> >>

Re: [Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-04-01 Thread Kevin Wolf
Am 01.04.2015 um 13:03 hat Markus Armbruster geschrieben: > Kevin Wolf writes: > > > Am 01.04.2015 um 11:33 hat Markus Armbruster geschrieben: > >> Kevin Wolf writes: > >> > >> > Am 31.03.2015 um 22:09 hat Markus Armbruster geschrieben: > >> >> Kevin Wolf writes: > >> >> > >> >> > Am 24.03.20

Re: [Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-04-01 Thread Markus Armbruster
Kevin Wolf writes: > Am 01.04.2015 um 11:33 hat Markus Armbruster geschrieben: >> Kevin Wolf writes: >> >> > Am 31.03.2015 um 22:09 hat Markus Armbruster geschrieben: >> >> Kevin Wolf writes: >> >> >> >> > Am 24.03.2015 um 21:03 hat Eric Blake geschrieben: >> >> >> From: Fam Zheng >> >> >>

Re: [Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-04-01 Thread Kevin Wolf
Am 01.04.2015 um 11:33 hat Markus Armbruster geschrieben: > Kevin Wolf writes: > > > Am 31.03.2015 um 22:09 hat Markus Armbruster geschrieben: > >> Kevin Wolf writes: > >> > >> > Am 24.03.2015 um 21:03 hat Eric Blake geschrieben: > >> >> From: Fam Zheng > >> >> > >> >> In the near term, we wi

Re: [Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-04-01 Thread Markus Armbruster
Kevin Wolf writes: > Am 31.03.2015 um 22:09 hat Markus Armbruster geschrieben: >> Kevin Wolf writes: >> >> > Am 24.03.2015 um 21:03 hat Eric Blake geschrieben: >> >> From: Fam Zheng >> >> >> >> In the near term, we will use it for a sensible-looking >> >> 'gen':false inside command declaratio

Re: [Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-04-01 Thread Kevin Wolf
Am 31.03.2015 um 22:09 hat Markus Armbruster geschrieben: > Kevin Wolf writes: > > > Am 24.03.2015 um 21:03 hat Eric Blake geschrieben: > >> From: Fam Zheng > >> > >> In the near term, we will use it for a sensible-looking > >> 'gen':false inside command declarations, instead of the > >> curren

Re: [Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-03-31 Thread Markus Armbruster
Kevin Wolf writes: > Am 24.03.2015 um 21:03 hat Eric Blake geschrieben: >> From: Fam Zheng >> >> In the near term, we will use it for a sensible-looking >> 'gen':false inside command declarations, instead of the >> current ugly 'gen':'no'. >> >> In the long term, it will allow conversion from

Re: [Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-03-31 Thread Kevin Wolf
Am 24.03.2015 um 21:03 hat Eric Blake geschrieben: > From: Fam Zheng > > In the near term, we will use it for a sensible-looking > 'gen':false inside command declarations, instead of the > current ugly 'gen':'no'. > > In the long term, it will allow conversion from shorthand > with defaults ment

Re: [Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-03-26 Thread Markus Armbruster
Eric Blake writes: > From: Fam Zheng > > In the near term, we will use it for a sensible-looking > 'gen':false inside command declarations, instead of the > current ugly 'gen':'no'. > > In the long term, it will allow conversion from shorthand > with defaults mentioned only in side-band document

[Qemu-devel] [PATCH v5 17/28] qapi: Allow true, false and null in schema json

2015-03-24 Thread Eric Blake
From: Fam Zheng In the near term, we will use it for a sensible-looking 'gen':false inside command declarations, instead of the current ugly 'gen':'no'. In the long term, it will allow conversion from shorthand with defaults mentioned only in side-band documentation: 'data':{'*flag':'bool', '*s