Statistics
| Branch: | Revision:

root / qapi-schema-test.json @ db80358a

History | View | Annotate | Download (828 Bytes)

1
# *-*- Mode: Python -*-*
2

    
3
# for testing enums
4
{ 'enum': 'EnumOne',
5
  'data': [ 'value1', 'value2', 'value3' ] }
6
{ 'type': 'NestedEnumsOne',
7
  'data': { 'enum1': 'EnumOne', '*enum2': 'EnumOne', 'enum3': 'EnumOne', '*enum4': 'EnumOne' } }
8

    
9
# for testing nested structs
10
{ 'type': 'UserDefOne',
11
  'data': { 'integer': 'int', 'string': 'str' } }
12

    
13
{ 'type': 'UserDefTwo',
14
  'data': { 'string': 'str',
15
            'dict': { 'string': 'str',
16
                      'dict': { 'userdef': 'UserDefOne', 'string': 'str' },
17
                      '*dict2': { 'userdef': 'UserDefOne', 'string': 'str' } } } }
18

    
19
# testing commands
20
{ 'command': 'user_def_cmd', 'data': {} }
21
{ 'command': 'user_def_cmd1', 'data': {'ud1a': 'UserDefOne'} }
22
{ 'command': 'user_def_cmd2', 'data': {'ud1a': 'UserDefOne', 'ud1b': 'UserDefOne'}, 'returns': 'UserDefTwo' }