Skip to content

Commit 76ea4d1

Browse files
committed
add comments
1 parent 8c581f2 commit 76ea4d1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

osf/models/cedar_metadata.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def clean(self):
6969
f for f in schema['required']
7070
if f not in CEDAR_SERVER_GENERATED_FIELDS
7171
]
72+
# Workaround for a cedar-embeddable-editor bug that injects extra keys into
73+
# @context; strip it down to only the schema-required keys before saving.
7274
context = self.metadata.get('@context')
7375
if isinstance(context, dict):
7476
required_context = schema.get('properties', {}).get('@context', {}).get('required')

0 commit comments

Comments
 (0)