a58069494d
Detect array types as alternate branches, and turn the JSON list into a QAPISchemaArrayType. Array types in an alternate are represented with QTYPE_QLIST in the type field. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20220321164243.200569-2-pbonzini@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
6 lines
130 B
JSON
6 lines
130 B
JSON
{ 'struct': 'One',
|
|
'data': { 'name': 'str' } }
|
|
{ 'alternate': 'Alt',
|
|
'data': { 'one': 'One',
|
|
'two': [ 'int' ] } }
|