[Qemu-devel] [PATCH 0/1] QAPI schema: turn example commands/returns into proper JSON

Cleber Rosa posted 1 patch 6 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20170808205327.8768-1-crosa@redhat.com
Test FreeBSD passed
Test checkpatch passed
Test docker passed
Test s390x passed
qapi-schema.json     |  9 ++++-----
qapi/block-core.json | 32 ++++++++++++++++----------------
qapi/rocker.json     |  5 +----
3 files changed, 21 insertions(+), 25 deletions(-)
[Qemu-devel] [PATCH 0/1] QAPI schema: turn example commands/returns into proper JSON
Posted by Cleber Rosa 6 years, 7 months ago
The QAPI schema documentation sections contain examples of QMP input
and output.  These are supposed to follow the "JSON-based" wire
protocol, but in practice, there are a few data structure problems and
also documentation.

This turns all inputs and outputs into parseable JSON-like data.
Besides allowing humans to copy and paste the examples without
surprises, this also paves the way towards automatic execution of
examples as tests.

Cleber Rosa(1):
   QAPI schema: turn example commands/returns into proper JSON

 qapi-schema.json     |  9 ++++-----
 qapi/block-core.json | 32 ++++++++++++++++----------------
 qapi/rocker.json     |  5 +----
 3 files changed, 21 insertions(+), 25 deletions(-)