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

11 lines
385 B
JSON

# union 'data' member with dict value is (longhand) branch
# definition, not inline complex type
{ 'enum': 'TestEnum',
'data': [ 'value1', 'value2' ] }
{ 'struct': 'Base',
'data': { 'enum1': 'TestEnum', 'kind': 'str' } }
{ 'union': 'TestUnion',
'base': 'Base',
'discriminator': 'enum1',
'data': { 'value1': { 'string': 'str' },
'value2': { 'integer': 'int' } } }