We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b10b0d commit 2bcb450Copy full SHA for 2bcb450
scripts/LBDatafile_schema.py
@@ -8,7 +8,7 @@ def validate_ids(field):
8
if 'seq_id' not in field and 'id' not in field:
9
raise ValueError('Either id (bit-encoded) or seq_id must be provided.')
10
11
- if field['migratable'] and 'seq_id' in field and 'collection_id' not in field:
+ if field.get("migratable") is True and 'seq_id' in field and 'collection_id' not in field:
12
raise ValueError('If an entity is migratable, it must have a collection_id')
13
14
return field
0 commit comments