historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/tests/qapi-schema/flat-union-inline.json
2024-01-16 11:20:27 -06:00

11 lines
380 B
JSON

# we require branches to be a struct name
# TODO: should we allow anonymous inline branch types?
{ 'enum': 'TestEnum',
'data': [ 'value1', 'value2' ] }
{ 'struct': 'Base',
'data': { 'enum1': 'TestEnum', 'kind': 'str' } }
{ 'union': 'TestUnion',
'base': 'Base',
'discriminator': 'enum1',
'data': { 'value1': { 'type': {} },
'value2': { 'integer': 'int' } } }