Skip to content

Commit

Permalink
msggen: Don't assume we have properties in the schema
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Apr 1, 2022
1 parent 306de2b commit baa51ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/msggen/msggen/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(self, typename, fields, path, description):
def from_js(cls, js, path):
typename = path2type(path)

properties = js["properties"]
properties = js.get("properties", {})
# Ok, let's flatten the conditional properties. We do this by
# reformatting the outer conditions into the `allOf` format.
top = {
Expand Down

0 comments on commit baa51ad

Please sign in to comment.