aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/returns-bad-type.json
blob: 0dd96e739ec22d3dbcef41b21e5e03404bfcd619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# we enforce that 'returns' be a dict or array of dict unless whitelisted

{ 'pragma': { 'command-returns-exceptions': [
    'human-monitor-command', 'query-tpm-models', 'guest-get-time' ] } }

{ 'command': 'human-monitor-command',
  'data': {'command-line': 'str', '*cpu-index': 'int'},
  'returns': 'str' }
{ 'enum': 'TpmModel', 'data': [ 'tpm-tis' ] }
{ 'command': 'query-tpm-models', 'returns': ['TpmModel'] }
{ 'command': 'guest-get-time',
  'returns': 'int' }

{ 'command': 'no-way-this-will-get-whitelisted',
  'returns': [ 'int' ] }