Re: [PATCH v2 12/19] qapi/schema: assert info is present when necessary

2024-01-16 Thread Markus Armbruster
John Snow writes: > QAPISchemaInfo instances are sometimes defined as an Optional > field/argument because built-in definitions don't *have* a source > definition. As a consequence, there are a few places where we need to > assert that it's present because the root entity definition can only > en

[PATCH v2 12/19] qapi/schema: assert info is present when necessary

2024-01-12 Thread John Snow
QAPISchemaInfo instances are sometimes defined as an Optional field/argument because built-in definitions don't *have* a source definition. As a consequence, there are a few places where we need to assert that it's present because the root entity definition can only enforce that it is "Optional".