Skip to content

Commit

Permalink
fix validation error (#2597)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Jun 10, 2024
1 parent 9ba8d30 commit 0b2d387
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/validate/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ def _validate_media_metadata(self, validate, associations_field, associations):
if not media_metadata_schema:
continue
for field, schema in media_metadata_schema.items():
if schema is None:
continue
if schema.get("required", False) and not assoc_data.get(field):
self._error("media's " + field, REQUIRED_FIELD)
try:
Expand Down

0 comments on commit 0b2d387

Please sign in to comment.