• E
    qapi: More rigorous checking for type safety bypass · 2cbf0992
    Eric Blake 提交于
    Now that we have a way to validate every type, we can also be
    stricter about enforcing that callers that want to bypass
    type safety in generated code.  Prior to this patch, it didn't
    matter what value was associated with the key 'gen', but it
    looked odd that 'gen':'yes' could result in bypassing the
    generated code.  These changes also enforce the changes made
    earlier in the series for documentation and consolidation of
    using '**' as the wildcard type, as well as 'gen':false as the
    canonical spelling for requesting type bypass.
    
    Note that 'gen':false is a one-way switch away from the default;
    we do not support 'gen':true (similar for 'success-response').
    In practice, this doesn't matter.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
    Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
    2cbf0992
qapi.py 31.9 KB