This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
qemu
Watch
1
Star
0
Fork
0
You've already forked qemu
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
349504e5a1
qemu
/
tests
/
qapi-schema
/
quoted-structural-chars.err
2 lines
71 B
Plaintext
Raw
Normal View
History
Unescape
Escape
qapi/parser: enforce all top-level expressions must be dict in _parse() Instead of using get_expr nested=False, allow get_expr to always return any expression. In exchange, add a new error message to the top-level parser that explains the semantic error: Top-level expressions must always be JSON objects. This helps mypy understand the rest of this function which assumes that get_expr did indeed return a dict. The exception type changes from QAPIParseError to QAPISemError as a result, and the error message in two tests now changes. Signed-off-by: John Snow <jsnow@redhat.com> Message-Id: <20210519183951.3946870-7-jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
2021-05-19 21:39:42 +03:00
quoted-structural-chars.json:1: top-level expression must be an object
Reference in New Issue
Copy Permalink