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': [ 'one', 'two' ], 'if': 'defined(IFCOND)' }
65 { 'struct': 'Base', 'data': { 'base1': 'Enum' } }
71 # Another paragraph (but no @var: line)
73 { 'struct': 'Variant1', 'data': { 'var1': 'str' } }
78 { 'struct': 'Variant2', 'data': {} }
85 'discriminator': 'base1',
86 'data': { 'one': 'Variant1', 'two': 'Variant2' } }
91 { 'union': 'SugaredUnion',
92 'data': { 'one': 'Variant1', 'two': 'Variant2' } }
95 # == Another subsection
100 # @arg1: the first argument
104 # Note: @arg3 is undocumented
108 # - Lorem ipsum dolor sit amet
109 # - Ut enim ad minim veniam
111 # Duis aute irure dolor
122 'data': { 'arg1': 'int', '*arg2': 'str', 'arg3': 'bool' },
123 'returns': 'Object' }
127 # If you're bored enough to read this, go see a video of boxed cats
134 { 'command': 'cmd-boxed', 'boxed': true,