Skip to content

fix: remove read-only fields from input DTOs - #2

Merged
vincentauger merged 1 commit into
mainfrom
fix/remove-readonly-fields-from-input-dtos
Mar 24, 2026
Merged

vincentauger merged 1 commit into
mainfrom
fix/remove-readonly-fields-from-input-dtos

Conversation

@vincentauger

@vincentauger vincentauger commented Mar 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Remove container, identifiers, and schemaVersion from CreateDOIInput and UpdateDOIInput
  • These fields are populated by DataCite and cannot be set by API consumers — including them was misleading and could cause unintended behavior

Test plan

  • Verify PHPStan passes (composer run test:types)
  • Verify existing tests pass (composer run test:unit)
  • Confirm CreateDOIInput and UpdateDOIInput no longer accept the removed fields

Remove container, identifiers, and schemaVersion from both input DTOs
as these are populated by DataCite and cannot be set by API consumers.
@vincentauger
vincentauger merged commit 982d7f9 into main Mar 24, 2026
4 checks passed
@vincentauger
vincentauger deleted the fix/remove-readonly-fields-from-input-dtos branch July 7, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant