Projet_SETI_RISC-V/riscv-gnu-toolchain/qemu/tests/qapi-schema/union-no-base.json
2023-03-06 14:48:14 +01:00

11 lines
316 B
JSON

# unions require a base
{ 'struct': 'TestTypeA',
'data': { 'string': 'str' } }
{ 'struct': 'TestTypeB',
'data': { 'integer': 'int' } }
{ 'enum': 'Enum',
'data': [ 'value1', 'value2' ] }
{ 'union': 'TestUnion',
'discriminator': 'Enum',
'data': { 'value1': 'TestTypeA',
'value2': 'TestTypeB' } }