Skip to content

QAPI schema: turn example commands/returns into proper JSON

Cleber Rosa qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1QAPI schema: turn example commands/returns into proper JSONqapi-schema.json qapi/block-core.json qapi/rocker.json+21 -253 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchEric Blake
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)