Markus Armbruster 1d8bda128d qapi: The #optional tag is redundant, drop
We traditionally mark optional members #optional in the doc comment.
Before commit 3313b61, this was entirely manual.

Commit 3313b61 added some automation because its qapi2texi.py relied
on #optional to determine whether a member is optional.  This is no
longer the case since the previous commit: the only thing qapi2texi.py
still does with #optional is stripping it out.  We still reject bogus
qapi-schema.json and six places for qga/qapi-schema.json.

Thus, you can't actually rely on #optional to see whether something is
optional.  Yet we still make people add it manually.  That's just
busy-work.

Drop the code to check, fix up and strip out #optional, along with all
instances of #optional.  To keep it out, add code to reject it, to be
dropped again once the dust settles.

No change to generated documentation.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1489582656-31133-18-git-send-email-armbru@redhat.com>
2017-03-16 07:13:02 +01:00
..
2015-11-17 18:35:56 +08:00
2014-06-10 07:44:01 +02:00
2016-05-26 11:12:05 -06:00
2017-01-16 13:25:18 +00:00
2016-03-11 16:59:12 +02:00
2017-02-20 11:26:28 +01:00
2017-01-16 10:11:43 +01:00
2016-11-02 09:28:57 +01:00
2017-01-24 23:26:53 +03:00
2017-01-24 23:26:52 +03:00
2016-10-13 17:23:53 +02:00