mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 03:13:44 +08:00
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' ] } }
|