QAPI patches for 2019-09-28
-----BEGIN PGP SIGNATURE----- iQJGBAABCAAwFiEENUvIs9frKmtoZ05fOHC0AOuRhlMFAl2PebUSHGFybWJydUBy ZWRoYXQuY29tAAoJEDhwtADrkYZT/VEP/Rru2BgOV/6OSIunW9Ii6qUsVNYtYM0L 4XrOaVJBhNnakAdPPphXmhk6iRCJESZ+4z+s4Iw+yD4aSRYEWowMFi1blaIk+3lH BNBllepKrvX9ZZyMHCooKrrO2PEPOPRin5izCDn5O93onQjwzXfWtuxZRn6WaLzB MOtixr340ysa+KNktpAWWPH/NJFq+LLvyQVUdN5xR1i5YBEVE9s0uZg9uq+zpFEg xSw45BDQSCjNNywd5mqJ0x+y7PCeGAINS9el43ernn654qVXpNgYepE3PpkCjCH7 snFKFJA8+h1VjXPd8/amJimD11+CFIUlhvtlVwccCWme8PRE6Hveerf7FvexnjpN yGfDOV2ezgrnFspAjI3hrPfsF1Vfxe+eDOUg+y9xGtRgD5LsWmkUBEukKZocVYQG H52BT6qt3IlUbWVPuHlWEUOsWKk7e3IeAZgnoaafRxwmLHaVWX0SPZCGm1Bfvxe2 LxXnS/pPWubyTrmQA9xCDhILrvkquCyOVBufFnS6D3h45psQKXr2Rh+vVjnYslRR /B1tDAFZvu9Q6+Y9//AnnLhTZlEPf+qg7Ajv+rH8PTl7SbB/tNVI+vrJJCp5AJab OifkqahV4H12STf4N2R3g4j/HqPj2PB1/GdLpmOc94ZY5h8GMxviEpwZkKTnw5xD zhwDdMVqL6c1 =CNvl -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2019-09-28' into staging QAPI patches for 2019-09-28 # gpg: Signature made Sat 28 Sep 2019 16:18:13 BST # gpg: using RSA key 354BC8B3D7EB2A6B68674E5F3870B400EB918653 # gpg: issuer "armbru@redhat.com" # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" [full] # gpg: aka "Markus Armbruster <armbru@pond.sub.org>" [full] # Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867 4E5F 3870 B400 EB91 8653 * remotes/armbru/tags/pull-qapi-2019-09-28: (27 commits) qapi: Improve source file read error handling qapi: Improve reporting of redefinition qapi: Improve reporting of missing documentation comment qapi: Eliminate check_keys(), rename check_known_keys() qapi: Improve reporting of invalid 'if' further qapi: Avoid redundant definition references in error messages qapi: Improve reporting of missing / unknown definition keys qapi: Improve reporting of invalid flags qapi: Improve reporting of invalid 'if' errors qapi: Move context-free checking to the proper place qapi: Move context-sensitive checking to the proper place qapi: Inline check_name() into check_union() qapi: Plumb info to the QAPISchemaMember qapi: Make check_type()'s array case a bit more obvious qapi: Move check for reserved names out of add_name() qapi: Report invalid '*' prefix like any other invalid name qapi: Use check_name_str() where it suffices qapi: Improve reporting of invalid name errors qapi: Reorder check_FOO() parameters for consistency qapi: Improve reporting of member name clashes ... Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
2094695689
@ -71,7 +71,7 @@
|
||||
'QapiErrorClass', # all members, visible through errors
|
||||
'UuidInfo', # UUID, visible through query-uuid
|
||||
'X86CPURegister32', # all members, visible indirectly through qom-get
|
||||
'q_obj_CpuInfo-base' # CPU, visible through query-cpu
|
||||
'CpuInfo' # CPU, visible through query-cpu
|
||||
] } }
|
||||
|
||||
# Documentation generated with qapi-gen.py is in source order, with
|
||||
|
@ -104,8 +104,9 @@ static QObject *do_qmp_dispatch(QmpCommandList *cmds, QObject *request,
|
||||
return NULL;
|
||||
}
|
||||
if (!cmd->enabled) {
|
||||
error_setg(errp, "The command %s has been disabled for this instance",
|
||||
command);
|
||||
error_set(errp, ERROR_CLASS_COMMAND_NOT_FOUND,
|
||||
"The command %s has been disabled for this instance",
|
||||
command);
|
||||
return NULL;
|
||||
}
|
||||
if (oob && !(cmd->options & QCO_ALLOW_OOB)) {
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -194,7 +194,7 @@ void %(event_emit)s(%(event_enum)s event, QDict *qdict);
|
||||
self._event_emit_name))
|
||||
# Note: we generate the enum member regardless of @ifcond, to
|
||||
# keep the enumeration usable in target-independent code.
|
||||
self._event_enum_members.append(QAPISchemaEnumMember(name))
|
||||
self._event_enum_members.append(QAPISchemaEnumMember(name, None))
|
||||
|
||||
|
||||
def gen_events(schema, output_dir, prefix):
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/allow-preconfig-test.json:2: 'allow-preconfig' of command 'allow-preconfig-test' should only use true value
|
||||
tests/qapi-schema/allow-preconfig-test.json: In command 'allow-preconfig-test':
|
||||
tests/qapi-schema/allow-preconfig-test.json:2: flag 'allow-preconfig' may only use true value
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-any.json:2: Alternate 'Alt' member 'one' cannot use type 'any'
|
||||
tests/qapi-schema/alternate-any.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-any.json:2: branch 'one' cannot use built-in type 'any'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-array.json:5: Member 'two' of alternate 'Alt' cannot be an array
|
||||
tests/qapi-schema/alternate-array.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-array.json:5: 'data' member 'two' cannot be an array
|
||||
|
@ -1,2 +1,3 @@
|
||||
tests/qapi-schema/alternate-base.json:4: Unknown key 'base' in alternate 'Alt'
|
||||
tests/qapi-schema/alternate-base.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-base.json:4: alternate has unknown key 'base'
|
||||
Valid keys are 'alternate', 'data', 'if'.
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-branch-if-invalid.json:2: 'if' condition ' ' makes no sense
|
||||
tests/qapi-schema/alternate-branch-if-invalid.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-branch-if-invalid.json:2: 'if' condition ' ' of 'data' member 'branch' makes no sense
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-clash.json:7: 'a_b' (branch of Alt1) collides with 'a-b' (branch of Alt1)
|
||||
tests/qapi-schema/alternate-clash.json: In alternate 'Alt1':
|
||||
tests/qapi-schema/alternate-clash.json:7: branch 'a_b' collides with branch 'a-b'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-conflict-bool-string.json:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
|
||||
tests/qapi-schema/alternate-conflict-bool-string.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-conflict-bool-string.json:2: branch 'two' can't be distinguished from 'one'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-conflict-dict.json:6: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
|
||||
tests/qapi-schema/alternate-conflict-dict.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-conflict-dict.json:6: branch 'two' can't be distinguished from 'one'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-conflict-enum-bool.json:4: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
|
||||
tests/qapi-schema/alternate-conflict-enum-bool.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-conflict-enum-bool.json:4: branch 'two' can't be distinguished from 'one'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-conflict-enum-int.json:4: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
|
||||
tests/qapi-schema/alternate-conflict-enum-int.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-conflict-enum-int.json:4: branch 'two' can't be distinguished from 'one'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-conflict-num-string.json:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
|
||||
tests/qapi-schema/alternate-conflict-num-string.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-conflict-num-string.json:2: branch 'two' can't be distinguished from 'one'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-conflict-string.json:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
|
||||
tests/qapi-schema/alternate-conflict-string.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-conflict-string.json:2: branch 'two' can't be distinguished from 'one'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-empty.json:2: Alternate 'Alt' cannot have empty 'data'
|
||||
tests/qapi-schema/alternate-empty.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-empty.json:2: 'data' must not be empty
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-invalid-dict.json:2: Key 'type' is missing from member 'two' of alternate 'Alt'
|
||||
tests/qapi-schema/alternate-invalid-dict.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-invalid-dict.json:2: 'data' member 'two' misses key 'type'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-nested.json:4: Member 'nested' of alternate 'Alt2' cannot use alternate type 'Alt1'
|
||||
tests/qapi-schema/alternate-nested.json: In alternate 'Alt2':
|
||||
tests/qapi-schema/alternate-nested.json:4: branch 'nested' cannot use alternate type 'Alt1'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/alternate-unknown.json:2: Member 'unknown' of alternate 'Alt' uses unknown type 'MissingType'
|
||||
tests/qapi-schema/alternate-unknown.json: In alternate 'Alt':
|
||||
tests/qapi-schema/alternate-unknown.json:2: branch 'unknown' uses unknown type 'MissingType'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-alternate.json:3: 'data' for command 'oops' cannot use alternate type 'Alt'
|
||||
tests/qapi-schema/args-alternate.json: In command 'oops':
|
||||
tests/qapi-schema/args-alternate.json:3: command's 'data' cannot take alternate type 'Alt'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-any.json:2: 'data' for command 'oops' cannot use built-in type 'any'
|
||||
tests/qapi-schema/args-any.json: In command 'oops':
|
||||
tests/qapi-schema/args-any.json:2: command's 'data' cannot take built-in type 'any'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-array-empty.json:2: Member 'empty' of 'data' for command 'oops': array type must contain single type name
|
||||
tests/qapi-schema/args-array-empty.json: In command 'oops':
|
||||
tests/qapi-schema/args-array-empty.json:2: 'data' member 'empty': array type must contain single type name
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-array-unknown.json:2: Member 'array' of 'data' for command 'oops' uses unknown type 'NoSuchType'
|
||||
tests/qapi-schema/args-array-unknown.json: In command 'oops':
|
||||
tests/qapi-schema/args-array-unknown.json:2: command uses unknown type 'NoSuchType'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-bad-boxed.json:2: 'boxed' of command 'foo' should only use true value
|
||||
tests/qapi-schema/args-bad-boxed.json: In command 'foo':
|
||||
tests/qapi-schema/args-bad-boxed.json:2: flag 'boxed' may only use true value
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-boxed-anon.json:2: 'data' for command 'foo' should be a type name
|
||||
tests/qapi-schema/args-boxed-anon.json: In command 'foo':
|
||||
tests/qapi-schema/args-boxed-anon.json:2: 'data' should be a type name
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-boxed-string.json:2: 'data' for command 'foo' cannot use built-in type 'str'
|
||||
tests/qapi-schema/args-boxed-string.json: In command 'foo':
|
||||
tests/qapi-schema/args-boxed-string.json:2: command's 'data' cannot take built-in type 'str'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-int.json:2: 'data' for command 'oops' cannot use built-in type 'int'
|
||||
tests/qapi-schema/args-int.json: In command 'oops':
|
||||
tests/qapi-schema/args-int.json:2: command's 'data' cannot take built-in type 'int'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-invalid.json:1: 'data' for command 'foo' should be an object or type name
|
||||
tests/qapi-schema/args-invalid.json: In command 'foo':
|
||||
tests/qapi-schema/args-invalid.json:1: 'data' should be an object or type name
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-member-array-bad.json:2: Member 'member' of 'data' for command 'oops': array type must contain single type name
|
||||
tests/qapi-schema/args-member-array-bad.json: In command 'oops':
|
||||
tests/qapi-schema/args-member-array-bad.json:2: 'data' member 'member': array type must contain single type name
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-member-case.json:2: 'Arg' (parameter of no-way-this-will-get-whitelisted) should not use uppercase
|
||||
tests/qapi-schema/args-member-case.json: In command 'no-way-this-will-get-whitelisted':
|
||||
tests/qapi-schema/args-member-case.json:2: 'data' member 'Arg' uses uppercase in name
|
||||
|
@ -1,2 +1,2 @@
|
||||
# Member names should be 'lower-case' unless the struct/command is whitelisted
|
||||
# Member names should be 'lower-case' unless the struct is whitelisted
|
||||
{ 'command': 'no-way-this-will-get-whitelisted', 'data': { 'Arg': 'int' } }
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-member-unknown.json:2: Member 'member' of 'data' for command 'oops' uses unknown type 'NoSuchType'
|
||||
tests/qapi-schema/args-member-unknown.json: In command 'oops':
|
||||
tests/qapi-schema/args-member-unknown.json:2: parameter 'member' uses unknown type 'NoSuchType'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-name-clash.json:4: 'a_b' (parameter of oops) collides with 'a-b' (parameter of oops)
|
||||
tests/qapi-schema/args-name-clash.json: In command 'oops':
|
||||
tests/qapi-schema/args-name-clash.json:4: parameter 'a_b' collides with parameter 'a-b'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-union.json:3: 'data' for command 'oops' cannot use union type 'Uni'
|
||||
tests/qapi-schema/args-union.json: In command 'oops':
|
||||
tests/qapi-schema/args-union.json:3: command's 'data' can take union type 'Uni' only with 'boxed': true
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/args-unknown.json:2: 'data' for command 'oops' uses unknown type 'NoSuchType'
|
||||
tests/qapi-schema/args-unknown.json: In command 'oops':
|
||||
tests/qapi-schema/args-unknown.json:2: command's 'data' uses unknown type 'NoSuchType'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/bad-base.json:3: 'base' for struct 'MyType' cannot use union type 'Union'
|
||||
tests/qapi-schema/bad-base.json: In struct 'MyType':
|
||||
tests/qapi-schema/bad-base.json:3: 'base' requires a struct type, union type 'Union' isn't
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/bad-data.json:2: 'data' for command 'oops' cannot be an array
|
||||
tests/qapi-schema/bad-data.json: In command 'oops':
|
||||
tests/qapi-schema/bad-data.json:2: 'data' cannot be an array
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/bad-ident.json:2: 'struct' does not allow optional name '*oops'
|
||||
tests/qapi-schema/bad-ident.json: In struct '*oops':
|
||||
tests/qapi-schema/bad-ident.json:2: struct has an invalid name
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/bad-if-empty-list.json:2: 'if' condition [] is useless
|
||||
tests/qapi-schema/bad-if-empty-list.json: In struct 'TestIfStruct':
|
||||
tests/qapi-schema/bad-if-empty-list.json:2: 'if' condition [] of struct is useless
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/bad-if-empty.json:2: 'if' condition '' makes no sense
|
||||
tests/qapi-schema/bad-if-empty.json: In struct 'TestIfStruct':
|
||||
tests/qapi-schema/bad-if-empty.json:2: 'if' condition '' of struct makes no sense
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/bad-if-list.json:2: 'if' condition ' ' makes no sense
|
||||
tests/qapi-schema/bad-if-list.json: In struct 'TestIfStruct':
|
||||
tests/qapi-schema/bad-if-list.json:2: 'if' condition ' ' of struct makes no sense
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/bad-if.json:2: 'if' condition must be a string or a list of strings
|
||||
tests/qapi-schema/bad-if.json: In struct 'TestIfStruct':
|
||||
tests/qapi-schema/bad-if.json:2: 'if' condition of struct must be a string or a list of strings
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/bad-type-bool.json:2: 'struct' key must have a string value
|
||||
tests/qapi-schema/bad-type-bool.json:2: 'struct' requires a string name
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/bad-type-dict.json:2: 'command' key must have a string value
|
||||
tests/qapi-schema/bad-type-dict.json:2: 'command' requires a string name
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/bad-type-int.json:3:13: Stray '123'
|
||||
tests/qapi-schema/bad-type-int.json:3:13: stray '123'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/base-cycle-direct.json:2: Object Loopy contains itself
|
||||
tests/qapi-schema/base-cycle-direct.json: In struct 'Loopy':
|
||||
tests/qapi-schema/base-cycle-direct.json:2: object Loopy contains itself
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/base-cycle-indirect.json:2: Object Base1 contains itself
|
||||
tests/qapi-schema/base-cycle-indirect.json: In struct 'Base1':
|
||||
tests/qapi-schema/base-cycle-indirect.json:2: object Base1 contains itself
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/command-int.json:2: built-in 'int' is already defined
|
||||
tests/qapi-schema/command-int.json: In command 'int':
|
||||
tests/qapi-schema/command-int.json:2: built-in type 'int' is already defined
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-bad-alternate-member.json:3: The following documented members are not in the declaration: aa, bb
|
||||
tests/qapi-schema/doc-bad-alternate-member.json:3: the following documented members are not in the declaration: aa, bb
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-bad-command-arg.json:3: The following documented members are not in the declaration: b
|
||||
tests/qapi-schema/doc-bad-command-arg.json:3: the following documented members are not in the declaration: b
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/doc-bad-symbol.json:6: Definition of 'foo' follows documentation for 'food'
|
||||
tests/qapi-schema/doc-bad-symbol.json: In command 'foo':
|
||||
tests/qapi-schema/doc-bad-symbol.json:6: documentation comment is for 'food'
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-bad-union-member.json:3: The following documented members are not in the declaration: a, b
|
||||
tests/qapi-schema/doc-bad-union-member.json:3: the following documented members are not in the declaration: a, b
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-before-include.json:3: Documentation for 'foo' is not followed by the definition
|
||||
tests/qapi-schema/doc-before-include.json:3: documentation for 'foo' is not followed by the definition
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-before-pragma.json:3: Documentation for 'foo' is not followed by the definition
|
||||
tests/qapi-schema/doc-before-pragma.json:3: documentation for 'foo' is not followed by the definition
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-duplicated-return.json:7:1: Duplicated 'Returns' section
|
||||
tests/qapi-schema/doc-duplicated-return.json:7:1: duplicated 'Returns' section
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-duplicated-since.json:7:1: Duplicated 'Since' section
|
||||
tests/qapi-schema/doc-duplicated-since.json:7:1: duplicated 'Since' section
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-empty-arg.json:5:1: Invalid parameter name
|
||||
tests/qapi-schema/doc-empty-arg.json:5:1: invalid parameter name
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-empty-section.json:7:1: Empty doc section 'Note'
|
||||
tests/qapi-schema/doc-empty-section.json:7:1: empty doc section 'Note'
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-empty-symbol.json:4:1: Invalid name
|
||||
tests/qapi-schema/doc-empty-symbol.json:4:1: invalid name
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-invalid-end.json:5:2: Documentation comment must end with '##'
|
||||
tests/qapi-schema/doc-invalid-end.json:5:2: documentation comment must end with '##'
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-invalid-end2.json:5:1: Junk after '##' at end of documentation comment
|
||||
tests/qapi-schema/doc-invalid-end2.json:5:1: junk after '##' at end of documentation comment
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-invalid-start.json:3:1: Junk after '##' at start of documentation comment
|
||||
tests/qapi-schema/doc-invalid-start.json:3:1: junk after '##' at start of documentation comment
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-missing-colon.json:4:1: Line should end with ':'
|
||||
tests/qapi-schema/doc-missing-colon.json:4:1: line should end with ':'
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-missing-expr.json:3: Documentation for 'bar' is not followed by the definition
|
||||
tests/qapi-schema/doc-missing-expr.json:3: documentation for 'bar' is not followed by the definition
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-missing-space.json:5:1: Missing space after #
|
||||
tests/qapi-schema/doc-missing-space.json:5:1: missing space after #
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/doc-missing.json:5: Definition missing documentation comment
|
||||
tests/qapi-schema/doc-missing.json: In command 'undocumented':
|
||||
tests/qapi-schema/doc-missing.json:5: documentation comment required
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/doc-no-symbol.json:3: Definition documentation required
|
||||
tests/qapi-schema/doc-no-symbol.json:3: definition documentation required
|
||||
|
@ -1,2 +1,3 @@
|
||||
tests/qapi-schema/double-type.json:2: Unknown key 'command' in struct 'bar'
|
||||
tests/qapi-schema/double-type.json: In struct 'bar':
|
||||
tests/qapi-schema/double-type.json:2: struct has unknown key 'command'
|
||||
Valid keys are 'base', 'data', 'features', 'if', 'struct'.
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/duplicate-key.json:3:10: Duplicate key 'key'
|
||||
tests/qapi-schema/duplicate-key.json:3:10: duplicate key 'key'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/enum-bad-member.json:2: Member of enum 'MyEnum' requires a string name
|
||||
tests/qapi-schema/enum-bad-member.json: In enum 'MyEnum':
|
||||
tests/qapi-schema/enum-bad-member.json:2: 'data' member requires a string name
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/enum-bad-name.json:3: Member of enum 'MyEnum' uses invalid name 'not\possible'
|
||||
tests/qapi-schema/enum-bad-name.json: In enum 'MyEnum':
|
||||
tests/qapi-schema/enum-bad-name.json:3: 'data' member 'not\possible' has an invalid name
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/enum-bad-prefix.json:2: Enum 'MyEnum' requires a string for 'prefix'
|
||||
tests/qapi-schema/enum-bad-prefix.json: In enum 'MyEnum':
|
||||
tests/qapi-schema/enum-bad-prefix.json:2: 'prefix' must be a string
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/enum-clash-member.json:2: 'one_two' (value of MyEnum) collides with 'one-two' (value of MyEnum)
|
||||
tests/qapi-schema/enum-clash-member.json: In enum 'MyEnum':
|
||||
tests/qapi-schema/enum-clash-member.json:2: value 'one_two' collides with value 'one-two'
|
||||
|
@ -1,2 +1,3 @@
|
||||
tests/qapi-schema/enum-dict-member-unknown.json:2: Unknown key 'bad-key' in member of enum 'MyEnum'
|
||||
tests/qapi-schema/enum-dict-member-unknown.json: In enum 'MyEnum':
|
||||
tests/qapi-schema/enum-dict-member-unknown.json:2: 'data' member has unknown key 'bad-key'
|
||||
Valid keys are 'if', 'name'.
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/enum-if-invalid.json:2: 'if' condition must be a string or a list of strings
|
||||
tests/qapi-schema/enum-if-invalid.json: In enum 'TestIfEnum':
|
||||
tests/qapi-schema/enum-if-invalid.json:2: 'if' condition of 'data' member 'bar' must be a string or a list of strings
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/enum-int-member.json:3:31: Stray '1'
|
||||
tests/qapi-schema/enum-int-member.json:3:31: stray '1'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/enum-member-case.json:4: 'Value' (value of NoWayThisWillGetWhitelisted) should not use uppercase
|
||||
tests/qapi-schema/enum-member-case.json: In enum 'NoWayThisWillGetWhitelisted':
|
||||
tests/qapi-schema/enum-member-case.json:4: 'data' member 'Value' uses uppercase in name
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/enum-missing-data.json:2: Key 'data' is missing from enum 'MyEnum'
|
||||
tests/qapi-schema/enum-missing-data.json: In enum 'MyEnum':
|
||||
tests/qapi-schema/enum-missing-data.json:2: enum misses key 'data'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/enum-wrong-data.json:2: Enum 'MyEnum' requires an array for 'data'
|
||||
tests/qapi-schema/enum-wrong-data.json: In enum 'MyEnum':
|
||||
tests/qapi-schema/enum-wrong-data.json:2: 'data' must be an array
|
||||
|
@ -1 +1 @@
|
||||
tests/qapi-schema/escape-outside-string.json:3:27: Stray '\'
|
||||
tests/qapi-schema/escape-outside-string.json:3:27: stray '\'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/event-boxed-empty.json:2: Use of 'boxed' requires 'data'
|
||||
tests/qapi-schema/event-boxed-empty.json: In event 'FOO':
|
||||
tests/qapi-schema/event-boxed-empty.json:2: 'boxed': true requires 'data'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/event-member-invalid-dict.json:1: Key 'type' is missing from member 'a' of 'data' for event 'EVENT_A'
|
||||
tests/qapi-schema/event-member-invalid-dict.json: In event 'EVENT_A':
|
||||
tests/qapi-schema/event-member-invalid-dict.json:1: 'data' member 'a' misses key 'type'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/event-nest-struct.json:1: Member 'a' of 'data' for event 'EVENT_A' should be a type name
|
||||
tests/qapi-schema/event-nest-struct.json: In event 'EVENT_A':
|
||||
tests/qapi-schema/event-nest-struct.json:1: 'data' member 'a' should be a type name
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/features-bad-type.json:1: Feature of struct FeatureStruct0 requires a string name
|
||||
tests/qapi-schema/features-bad-type.json: In struct 'FeatureStruct0':
|
||||
tests/qapi-schema/features-bad-type.json:1: 'features' member requires a string name
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/features-duplicate-name.json:1: 'foo' (feature of FeatureStruct0) collides with 'foo' (feature of FeatureStruct0)
|
||||
tests/qapi-schema/features-duplicate-name.json: In struct 'FeatureStruct0':
|
||||
tests/qapi-schema/features-duplicate-name.json:1: feature 'foo' collides with feature 'foo'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/features-if-invalid.json:2: 'if' condition must be a string or a list of strings
|
||||
tests/qapi-schema/features-if-invalid.json: In struct 'Stru':
|
||||
tests/qapi-schema/features-if-invalid.json:2: 'if' condition of 'features' member 'f' must be a string or a list of strings
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/features-missing-name.json:1: Key 'name' is missing from feature of struct FeatureStruct0
|
||||
tests/qapi-schema/features-missing-name.json: In struct 'FeatureStruct0':
|
||||
tests/qapi-schema/features-missing-name.json:1: 'features' member misses key 'name'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/features-name-bad-type.json:1: Feature of struct FeatureStruct0 requires a string name
|
||||
tests/qapi-schema/features-name-bad-type.json: In struct 'FeatureStruct0':
|
||||
tests/qapi-schema/features-name-bad-type.json:1: 'features' member requires a string name
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/features-no-list.json:1: Struct 'FeatureStruct0' requires an array for 'features'
|
||||
tests/qapi-schema/features-no-list.json: In struct 'FeatureStruct0':
|
||||
tests/qapi-schema/features-no-list.json:1: 'features' must be an array
|
||||
|
@ -1,2 +1,3 @@
|
||||
tests/qapi-schema/features-unknown-key.json:1: Unknown key 'colour' in feature of struct FeatureStruct0
|
||||
tests/qapi-schema/features-unknown-key.json: In struct 'FeatureStruct0':
|
||||
tests/qapi-schema/features-unknown-key.json:1: 'features' member has unknown key 'colour'
|
||||
Valid keys are 'if', 'name'.
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/flat-union-array-branch.json:8: Member 'value1' of union 'TestUnion' cannot be an array
|
||||
tests/qapi-schema/flat-union-array-branch.json: In union 'TestUnion':
|
||||
tests/qapi-schema/flat-union-array-branch.json:8: 'data' member 'value1' cannot be an array
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/flat-union-bad-base.json:8: 'string' (member of TestTypeA) collides with 'string' (base of TestUnion)
|
||||
tests/qapi-schema/flat-union-bad-base.json: In union 'TestUnion':
|
||||
tests/qapi-schema/flat-union-bad-base.json:8: member 'string' of type 'TestTypeA' collides with base member 'string'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/flat-union-bad-discriminator.json:11: Discriminator of flat union 'TestUnion' requires a string name
|
||||
tests/qapi-schema/flat-union-bad-discriminator.json: In union 'TestUnion':
|
||||
tests/qapi-schema/flat-union-bad-discriminator.json:11: 'discriminator' requires a string name
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/flat-union-base-any.json:8: 'base' for union 'TestUnion' cannot use built-in type 'any'
|
||||
tests/qapi-schema/flat-union-base-any.json: In union 'TestUnion':
|
||||
tests/qapi-schema/flat-union-base-any.json:8: 'base' requires a struct type, built-in type 'any' isn't
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/flat-union-base-union.json:14: 'base' for union 'TestUnion' cannot use union type 'UnionBase'
|
||||
tests/qapi-schema/flat-union-base-union.json: In union 'TestUnion':
|
||||
tests/qapi-schema/flat-union-base-union.json:14: 'base' requires a struct type, union type 'UnionBase' isn't
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/flat-union-clash-member.json:11: 'name' (member of Branch1) collides with 'name' (member of Base)
|
||||
tests/qapi-schema/flat-union-clash-member.json: In union 'TestUnion':
|
||||
tests/qapi-schema/flat-union-clash-member.json:11: member 'name' of type 'Branch1' collides with member 'name' of type 'Base'
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/flat-union-discriminator-bad-name.json:7: Discriminator of flat union 'MyUnion' does not allow optional name '*switch'
|
||||
tests/qapi-schema/flat-union-discriminator-bad-name.json: In union 'MyUnion':
|
||||
tests/qapi-schema/flat-union-discriminator-bad-name.json:6: discriminator '*switch' is not a member of 'base'
|
||||
|
@ -1,5 +1,4 @@
|
||||
# discriminator '*switch' isn't a member of base, 'switch' is
|
||||
# reports "does not allow optional name", which is good enough
|
||||
{ 'enum': 'Enum', 'data': [ 'one', 'two' ] }
|
||||
{ 'struct': 'Base',
|
||||
'data': { '*switch': 'Enum' } }
|
||||
|
@ -1 +1,2 @@
|
||||
tests/qapi-schema/flat-union-empty.json:4: Union 'Union' has no branches
|
||||
tests/qapi-schema/flat-union-empty.json: In union 'Union':
|
||||
tests/qapi-schema/flat-union-empty.json:4: union has no branches
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user