mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-03 21:24:22 +01:00
msggen: Don't assume we have properties in the schema
This commit is contained in:
committed by
Rusty Russell
parent
5a1e58f0dc
commit
be04f25666
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user