mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 05:20:50 +00:00
3e6c8a6331
Type names should be CamelCase. Enforce this. The only offenders are in tests/. Fix them. Add test type-case to cover the new error. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210323094025.3569441-15-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> [Regexp simplified, new test made more robust]
20 lines
340 B
JSON
20 lines
340 B
JSON
# Arguments listed in the doc comment must exist in the actual schema
|
|
|
|
##
|
|
# @Frob:
|
|
# @a: a
|
|
# @b: b
|
|
##
|
|
{ 'union': 'Frob',
|
|
'base': 'Base',
|
|
'discriminator': 'type',
|
|
'data': { 'nothing': 'Empty' } }
|
|
|
|
{ 'struct': 'Base',
|
|
'data': { 'type': 'FrobType' } }
|
|
|
|
{ 'struct': 'Empty',
|
|
'data': { } }
|
|
|
|
{ 'enum': 'FrobType', 'data': ['nothing'] }
|