You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/tests/qapi-schema/struct-base-clash-deep.json

13 lines
394 B
JSON

# Reject attempts to duplicate QMP members
# Here, 'name' would have to appear twice on the wire, locally and
# indirectly for the grandparent base; the collision doesn't care that
# one instance is optional.
{ 'struct': 'Base',
'data': { 'name': 'str' } }
{ 'struct': 'Mid',
'base': 'Base',
'data': { 'value': 'int' } }
{ 'struct': 'Sub',
'base': 'Mid',
'data': { '*name': 'str' } }