Responses now include password_hash
GET /api/users, GET /api/me, GET /api/users/{id}/followers, GET /api/posts and 10 more · 38 requests from 25 tests
The PR description only mentions backing has_password with the actual column for OpenAPI docs, but the diff adds password_hash as a dump_only field exposing password hashes in user list endpoints.
Base before the PR
data[0].password_hash: not in the response
Head with the PR
data[0].password_hash: "scrypt:32768:8:1$[hidden on the site]"
All 38 requests behind this change
| Found by | Who | Request | What changed |
|---|---|---|---|
| your tests | test_auth.py::test_get_token | GET /api/users | changed: data.*.password_hash (added) |
| your tests | test_auth.py::test_oauth | GET /api/me | changed: password_hash (added) |
| your tests | test_auth.py::test_oauth | GET /api/me | changed: password_hash (added) |
| your tests | test_auth.py::test_refresh_revoke_all | GET /api/users | changed: data.*.password_hash (added) |
| your tests | test_auth.py::test_refresh_token | GET /api/users | changed: data.*.password_hash (added) |
| your tests | test_auth.py::test_revoke | GET /api/users | changed: data.*.password_hash (added) |
| your tests | test_pagination.py::test_pagination_after_asc | GET /api/users/1/followers?after=g | changed: data.*.password_hash (added) x19 |
| your tests | test_pagination.py::test_pagination_custom_limit | GET /api/posts?offset=16&limit=5 | changed: data.*.author.password_hash (added) x5 |
| your tests | test_pagination.py::test_pagination_default | GET /api/posts | changed: data.*.author.password_hash (added) x25 |
| your tests | test_pagination.py::test_pagination_large_per_page | GET /api/posts?offset=37&limit=50 | changed: data.*.author.password_hash (added) x25 |
| your tests | test_pagination.py::test_pagination_last | GET /api/posts?offset=99 | changed: data.*.author.password_hash (added) x6 |
| your tests | test_pagination.py::test_pagination_page | GET /api/posts?offset=30&limit=10 | changed: data.*.author.password_hash (added) x10 |
| your tests | test_posts.py::test_delete_post | POST /api/posts | changed: author.password_hash (added) |
| your tests | test_posts.py::test_edit_post | POST /api/posts | changed: author.password_hash (added) |
| your tests | test_posts.py::test_edit_post | PUT /api/posts/1 | changed: author.password_hash (added) |
| your tests | test_posts.py::test_edit_post | GET /api/posts/1 | changed: author.password_hash (added) |
| your tests | test_posts.py::test_new_post | POST /api/posts | changed: author.password_hash (added) |
| your tests | test_posts.py::test_new_post | GET /api/posts/1 | changed: author.password_hash (added) |
| your tests | test_posts.py::test_new_post | GET /api/posts | changed: data.*.author.password_hash (added) |
| your tests | test_posts.py::test_new_post | GET /api/users/1/posts | changed: data.*.author.password_hash (added) |
| your tests | test_posts.py::test_permissions | GET /api/posts/1 | changed: author.password_hash (added) |
| your tests | test_posts.py::test_post_feed | GET /api/feed | changed: data.*.author.password_hash (added) x3 |
| your tests | test_user_model.py::test_get_users | POST /api/users | changed: password_hash (added) |
| your tests | test_user_model.py::test_get_users | GET /api/users | changed: data.*.password_hash (added) x2 |
| your tests | test_users.py::test_create_user | POST /api/users | changed: password_hash (added) |
| your tests | test_users.py::test_create_user | GET /api/users/2 | changed: password_hash (added) |
| your tests | test_users.py::test_edit_me | PUT /api/me | changed: password_hash (added) |
| your tests | test_users.py::test_edit_password | PUT /api/me | changed: password_hash (added) |
| your tests | test_users.py::test_edit_user_no_changes | GET /api/me | changed: password_hash (added) |
| your tests | test_users.py::test_edit_user_no_changes | PUT /api/me | changed: password_hash (added) |
| your tests | test_users.py::test_follow_unfollow | POST /api/users | changed: password_hash (added) |
| your tests | test_users.py::test_follow_unfollow | GET /api/me/following | changed: data.*.password_hash (added) |
| your tests | test_users.py::test_follow_unfollow | GET /api/me/following | changed: data.*.password_hash (added) |
| your tests | test_users.py::test_follow_unfollow | GET /api/users/2/followers | changed: data.*.password_hash (added) |
| your tests | test_users.py::test_get_me | GET /api/me | changed: password_hash (added) |
| your tests | test_users.py::test_get_user | GET /api/users/1 | changed: password_hash (added) |
| your tests | test_users.py::test_get_user | GET /api/users/test | changed: password_hash (added) |
| your tests | test_users.py::test_get_users | GET /api/users | changed: data.*.password_hash (added) |