-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qapi: Check feature documentation against the schema
Commit f3ed93d "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 <[email protected]> Message-Id: <[email protected]>
- Loading branch information
Markus Armbruster
committed
Oct 29, 2019
1 parent
e4def78
commit e151941
Showing
8 changed files
with
27 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
doc-bad-feature.json:3: documented member 'a' does not exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +0,0 @@ | ||
module None | ||
object q_empty | ||
enum QType | ||
prefix QTYPE | ||
member none | ||
member qnull | ||
member qnum | ||
member qstring | ||
member qdict | ||
member qlist | ||
member qbool | ||
module doc-bad-feature.json | ||
command foo None -> None | ||
gen=True success_response=True boxed=False oob=False preconfig=False | ||
doc symbol=foo | ||
body= | ||
|
||
feature=a | ||
a | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
doc-undoc-feature.json: In command 'foo': | ||
doc-undoc-feature.json:9: feature 'undoc' lacks documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Doc comment must cover all features | ||
# BUG: missing documentation for @undoc not caught | ||
|
||
## | ||
# @foo: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +0,0 @@ | ||
module None | ||
object q_empty | ||
enum QType | ||
prefix QTYPE | ||
member none | ||
member qnull | ||
member qnum | ||
member qstring | ||
member qdict | ||
member qlist | ||
member qbool | ||
module doc-undoc-feature.json | ||
command foo None -> None | ||
gen=True success_response=True boxed=False oob=False preconfig=False | ||
feature undoc | ||
feature doc | ||
doc symbol=foo | ||
body= | ||
|
||
feature=doc | ||
documented feature | ||