aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/schema.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2019-10-24 13:02:37 +0200
committerMarkus Armbruster <armbru@redhat.com>2019-10-29 07:35:16 +0100
commite151941d1b691402f7914750e025209b7839a1c0 (patch)
tree038d26df94d19bcc8f9598f4cc061b8742b4ed6c /scripts/qapi/schema.py
parente4def7875520aef0643e83698e397abe229a8953 (diff)
downloadqemu-e151941d1b691402f7914750e025209b7839a1c0.zip
qemu-e151941d1b691402f7914750e025209b7839a1c0.tar.gz
qemu-e151941d1b691402f7914750e025209b7839a1c0.tar.bz2
qapi: Check feature documentation against the schema
Commit f3ed93d545 "qapi: Allow documentation for features" neglected to check documentation against the schema. Fix that: check them the same way we check arguments. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20191024110237.30963-20-armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/schema.py')
-rw-r--r--scripts/qapi/schema.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/qapi/schema.py b/scripts/qapi/schema.py
index bdea948..cf0045f 100644
--- a/scripts/qapi/schema.py
+++ b/scripts/qapi/schema.py
@@ -56,6 +56,8 @@ class QAPISchemaEntity(object):
seen = {}
for f in self.features:
f.check_clash(self.info, seen)
+ if self.doc:
+ self.doc.connect_feature(f)
self._checked = True