diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-03-21 17:42:41 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2022-04-21 10:11:25 +0200 |
commit | a58069494ded1282c36b7fca8d67bf487c160983 (patch) | |
tree | c6de12c9b556a9b22d3d2bad9d99c6057402daa5 /tests/qapi-schema/alternate-array.json | |
parent | 9c125d17e9402c232c46610802e5931b3639d77b (diff) |
qapi-schema: support alternates with array type
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>
Diffstat (limited to 'tests/qapi-schema/alternate-array.json')
-rw-r--r-- | tests/qapi-schema/alternate-array.json | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/qapi-schema/alternate-array.json b/tests/qapi-schema/alternate-array.json index f241aac122..b878a2db77 100644 --- a/tests/qapi-schema/alternate-array.json +++ b/tests/qapi-schema/alternate-array.json @@ -1,5 +1,3 @@ -# we do not allow array branches in alternates -# TODO: should we support this? { 'struct': 'One', 'data': { 'name': 'str' } } { 'alternate': 'Alt', |