1dd883c6fSEric Blake# we reject a base that is not a struct 2*76432d98SMarkus Armbruster{ 'enum': 'Enum', 'data': [ 'a', 'b' ] } 3*76432d98SMarkus Armbruster{ 'struct': 'Int', 'data': { 'data': 'int' } } 4*76432d98SMarkus Armbruster{ 'struct': 'Str', 'data': { 'data': 'str' } } 5*76432d98SMarkus Armbruster{ 'union': 'Union', 6*76432d98SMarkus Armbruster 'base': { 'type': 'Enum' }, 7*76432d98SMarkus Armbruster 'discriminator': 'type', 8*76432d98SMarkus Armbruster 'data': { 'a': 'Int', 'b': 'Str' } } 9895a2a80SEric Blake{ 'struct': 'MyType', 'base': 'Union', 'data': { 'c': 'int' } } 10