Skip to content

Fix profile response fields and add bio validation (#13)#78

Open
learnercloudtech wants to merge 4 commits intoanxkhn:mainfrom
learnercloudtech:main
Open

Fix profile response fields and add bio validation (#13)#78
learnercloudtech wants to merge 4 commits intoanxkhn:mainfrom
learnercloudtech:main

Conversation

@learnercloudtech
Copy link
Copy Markdown

Summary
This PR fixes multiple issues to align the Workshop API with the test suite and Issue #13.

Changes

  • Added max_length=500 validation to the bio field in ProfileCreate.
  • Updated ProfileResponse to include both name and username for consistency with tests.
  • Fixed /health endpoint to return 200 OK with {"status": "ok"}.
  • Corrected /sum endpoint to perform addition instead of multiplication.
  • Updated /search endpoint to return all profiles when query is empty.

Validation

  • Ran pytest tests/ -v → all 9 tests passed

Issue Reference
Closes #13

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.

Add max_length validation to profile bio field

1 participant