summaryrefslogtreecommitdiff
path: root/inventory/schema.py
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/schema.py')
-rw-r--r--inventory/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/inventory/schema.py b/inventory/schema.py
index 4837d58..0728aea 100644
--- a/inventory/schema.py
+++ b/inventory/schema.py
@@ -27,7 +27,7 @@ class FieldSchema(Schema):
class NodeSchema(Schema):
_id = ObjectId(dump_only=True, data_key='id')
name = fields.String(required=True)
- parent_id = ObjectId(default=None)
+ parent_id = ObjectId(default=None, allow_none=True)
_fields = fields.List(fields.Nested(FieldSchema()), default=[], attribute='fields', data_key='fields')
# These are not set by the caller, but by the API endpoint