]> git.proxmox.com Git - mirror_qemu.git/blob - tests/qapi-schema/returns-bad-type.json
qapi: Improve error message for unexpected array types
[mirror_qemu.git] / tests / qapi-schema / returns-bad-type.json
1 # we enforce that 'returns' be a dict or array of dict unless whitelisted
2
3 { 'pragma': { 'command-returns-exceptions': [
4 'human-monitor-command', 'query-tpm-models', 'guest-get-time' ] } }
5
6 { 'command': 'human-monitor-command',
7 'data': {'command-line': 'str', '*cpu-index': 'int'},
8 'returns': 'str' }
9 { 'enum': 'TpmModel', 'data': [ 'tpm-tis' ] }
10 { 'command': 'query-tpm-models', 'returns': ['TpmModel'] }
11 { 'command': 'guest-get-time',
12 'returns': 'int' }
13
14 { 'command': 'no-way-this-will-get-whitelisted',
15 'returns': [ 'int' ] }