[PATCH v2 11/11] qapi: scripts: add a generator for qapi's examples

2023-09-11 Thread Victor Toso
This generator has two goals: 1. Mechanical validation of QAPI examples 2. Generate the examples in a JSON format to be consumed for extra validation. The generator iterates over every Example section, parsing both server and client messages. The generator prints any inconsistency found, for

[PATCH v2 11/11] qapi: scripts: add a generator for qapi's examples

2023-09-11 Thread Victor Toso
This generator has two goals: 1. Mechanical validation of QAPI examples 2. Generate the examples in a JSON format to be consumed for extra validation. The generator iterates over every Example section, parsing both server and client messages. The generator prints any inconsistency found, for