Re: [PATCH v1 1/7] qapi: scripts: add a generator for qapi's examples

2023-09-08 Thread Daniel P . Berrangé
On Thu, Sep 07, 2023 at 08:34:07PM +0200, Victor Toso wrote: > Hi, > > On Wed, Sep 06, 2023 at 10:15:52AM +0100, Daniel P. Berrangé wrote: > > On Tue, Sep 05, 2023 at 09:48:40PM +0200, Victor Toso wrote: > > > This generator has two goals: > > > 1. Mechanical validation of QAPI examples > > > 2.

Re: [PATCH v1 1/7] qapi: scripts: add a generator for qapi's examples

2023-09-07 Thread Victor Toso
Hi, On Wed, Sep 06, 2023 at 10:15:52AM +0100, Daniel P. Berrangé wrote: > On Tue, Sep 05, 2023 at 09:48:40PM +0200, Victor Toso wrote: > > This generator has two goals: > > 1. Mechanical validation of QAPI examples > > 2. Generate the examples in a JSON format to be consumed for extra > > va

Re: [PATCH v1 1/7] qapi: scripts: add a generator for qapi's examples

2023-09-06 Thread Daniel P . Berrangé
On Tue, Sep 05, 2023 at 09:48:40PM +0200, Victor Toso wrote: > 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 serv

[PATCH v1 1/7] qapi: scripts: add a generator for qapi's examples

2023-09-05 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