Skip to content

❇️ handle profile file#258

Open
Diya-0816 wants to merge 3 commits intokaw393939:mainfrom
Diya-0816:feature/handle-profile-file
Open

❇️ handle profile file#258
Diya-0816 wants to merge 3 commits intokaw393939:mainfrom
Diya-0816:feature/handle-profile-file

Conversation

@Diya-0816
Copy link

Fix: Profile Update Validation

  • Added @root_validator to UserUpdate schema to ensure at least one field is provided.
  • Returns 422 error if all fields are None.
  • Added tests to validate failure on empty payloads and success on single-field updates.

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.

2 participants