2 # Positive QAPI doc comment tests
4 { 'pragma': { 'doc-required': true } }
11 # *strong* _with emphasis_
34 # Since: the first age
37 # 1. Lorem ipsum dolor sit amet
39 # 2. Ut enim ad minim veniam
41 # Duis aute irure dolor
54 # @one: The _one_ {and only}
56 # @two is undocumented
58 { 'enum': 'Enum', 'data':
59 [ { 'name': 'one', 'if': 'defined(IFONE)' }, 'two' ],
60 'if': 'defined(IFCOND)' }
67 { 'struct': 'Base', 'data': { 'base1': 'Enum' } }
73 # Another paragraph (but no @var: line)
75 { 'struct': 'Variant1',
76 'data': { 'var1': { 'type': 'str', 'if': 'defined(IFSTR)' } } }
81 { 'struct': 'Variant2', 'data': {} }
88 'discriminator': 'base1',
89 'data': { 'one': 'Variant1', 'two': { 'type': 'Variant2', 'if': 'IFTWO' } } }
94 { 'union': 'SugaredUnion',
95 'data': { 'one': 'Variant1', 'two': { 'type': 'Variant2', 'if': 'IFTWO' } } }
98 # == Another subsection
103 # @arg1: the first argument
107 # Note: @arg3 is undocumented
111 # - Lorem ipsum dolor sit amet
112 # - Ut enim ad minim veniam
114 # Duis aute irure dolor
125 'data': { 'arg1': 'int', '*arg2': 'str', 'arg3': 'bool' },
126 'returns': 'Object' }
130 # If you're bored enough to read this, go see a video of boxed cats
137 { 'command': 'cmd-boxed', 'boxed': true,