mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00

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>
5 lines
130 B
JSON
5 lines
130 B
JSON
{ 'struct': 'One',
|
|
'data': { 'name': 'str' } }
|
|
{ 'alternate': 'Alt',
|
|
'data': { 'one': 'One',
|
|
'two': [ 'int' ] } }
|