aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/doc-optional.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/doc-optional.json')
-rw-r--r--tests/qapi-schema/doc-optional.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/qapi-schema/doc-optional.json b/tests/qapi-schema/doc-optional.json
new file mode 100644
index 0000000000..06c855ec94
--- /dev/null
+++ b/tests/qapi-schema/doc-optional.json
@@ -0,0 +1,7 @@
+# Description #optional should match declaration
+
+##
+# @foo:
+# @a: a #optional
+##
+{ 'command': 'foo', 'data': {'a': 'int'} }