mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-20 13:54:36 +01:00
msggen: Don't assume we have properties in the schema
This commit is contained in:
parent
5a1e58f0dc
commit
be04f25666
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class CompositeField(Field):
|
|||
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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue