We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c581f2 commit 76ea4d1Copy full SHA for 76ea4d1
1 file changed
osf/models/cedar_metadata.py
@@ -69,6 +69,8 @@ def clean(self):
69
f for f in schema['required']
70
if f not in CEDAR_SERVER_GENERATED_FIELDS
71
]
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.
74
context = self.metadata.get('@context')
75
if isinstance(context, dict):
76
required_context = schema.get('properties', {}).get('@context', {}).get('required')
0 commit comments