On 5/17/21 7:18 AM, Marc-André Lureau wrote:


    'if': 'COND'
    'if': ['COND']
    'if': { 'any': ['COND'] }


Actually, a simple list is short form for { 'all': [] }

Typo on my part. It maintains compatibility with what it used to mean, so it's good.

I wonder if we want *three* forms available directly in the schema. Can we condense it back down to two somehow? Could we possibly remove the list-less form?

(The less forms we have, the easier it is to offer e.g. intellisense plugins for vscode and things of that nature, which is something I have an interest in to improve the usability of the generator for contributors who are less invested in the QAPI subsystem.)

--js


Reply via email to