xref: /qemu/tests/qapi-schema/struct-base-clash-deep.json (revision 3c2758c286fbb82973471d09f5977dc5ece37137)
1*d220fbcdSEric Blake# Reject attempts to duplicate QMP members
2*d220fbcdSEric Blake# Here, 'name' would have to appear twice on the wire, locally and
3*d220fbcdSEric Blake# indirectly for the grandparent base; the collision doesn't care that
4*d220fbcdSEric Blake# one instance is optional.
5ff55d72eSEric Blake{ 'struct': 'Base',
6ff55d72eSEric Blake  'data': { 'name': 'str' } }
7ff55d72eSEric Blake{ 'struct': 'Mid',
8ff55d72eSEric Blake  'base': 'Base',
9ff55d72eSEric Blake  'data': { 'value': 'int' } }
10ff55d72eSEric Blake{ 'struct': 'Sub',
11ff55d72eSEric Blake  'base': 'Mid',
12ff55d72eSEric Blake  'data': { '*name': 'str' } }
13