refactor: creator or source_label required if release rights is others

refactor: creator or source_label if release rights is others

Description

  • Update validation logic to enforce a rule such that:
    • creator OR source_label must be sent when release rights = others.
    • Reject requests only when both are missing.
  • Adjust schema, Pydantic model, or backend validation accordingly.
  • Update error messaging to reflect the new validation rule.

No functional changes affected accept the validation change.

Usage in our application:

While uploads: has to give creator when release rights is others

While peer-editing: has to give source_label when release rights is others

Checklist

  • Code has been refactored for clarity, maintainability, or performance.
  • No functional changes have been introduced.
  • All existing tests are passing.
  • Code adheres to project coding standards.

Related Issue(s)

Closes #88 (closed)

Merge request reports

Loading