Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Use Pydantic to systematically validate a first batch of endpoints in synapse.rest.client.account. #13188

Merged
merged 32 commits into from
Aug 15, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c932ed5
Lock pydantic
Jun 30, 2022
c40edbd
Use pydantic mypy plugin
May 22, 2022
52b0ef3
Helper for validating a json body with pydantic
Jul 4, 2022
87a6e79
Validate `client/account/deactivate`
Jul 4, 2022
c7caf5b
Validate `/client/account/password`
Jul 5, 2022
3319732
Changelog
Jul 5, 2022
9a47994
Better errcode when pw reset emails are disabled
Jul 5, 2022
0a87861
Validate `/client/account/passsword/email/requestToken`
Jul 5, 2022
3e2d003
move out RequestToken body to models
Jul 5, 2022
ba71e02
Validate `/client/account/3pid/email/requestToken`
Jul 5, 2022
e4926c2
Ooops, use Strict* types for EmailRequestTokenBody
Jul 5, 2022
b81faf4
Fix linter whoops
Jul 5, 2022
dc1f188
Revert "Better errcode when pw reset emails are disabled"
Jul 20, 2022
61f8f25
Move the models into the servlet classes
Jul 20, 2022
296467e
Revert another status code change.
Jul 20, 2022
94ca8d3
Merge branch 'develop' into dmr/rest/client/account
Jul 20, 2022
a273870
Relax pydantic version Bound
Jul 20, 2022
07ba995
Fix bad merge?
Jul 20, 2022
74cceab
Argh, fix linter
Jul 20, 2022
ff80b3f
A few str -> StrictStr when TYPE_CHECKING
Aug 8, 2022
a256487
Merge remote-tracking branch 'origin/develop' into dmr/rest/client/ac…
Aug 8, 2022
7294fc2
Use Pydantic 1.7.4
Aug 8, 2022
f20226e
Update changelog
Aug 8, 2022
df1f840
Require access token if id server is provided
Aug 8, 2022
c4074aa
Ignore unused fields; create frozen instances
Aug 8, 2022
fefb0a8
Fix mypy
Aug 8, 2022
4dbafed
Fix lint
Aug 8, 2022
bd917d3
Update changelog
Aug 10, 2022
f8f6037
Add a missing `strict=True`.
Aug 10, 2022
c404f8f
Move the BaseModel subclass to synapse.rest
Aug 10, 2022
1597977
Try to break circular import?
Aug 10, 2022
22aee7a
Fix lint durr
Aug 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update changelog
  • Loading branch information
David Robertson committed Aug 10, 2022
commit bd917d325806a0d06d9015c756559d83403286a4
1 change: 1 addition & 0 deletions changelog.d/13188.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve validation of request bodies for the following client-server API endpoints: [`/account/password`](https://spec.matrix.org/v1.3/client-server-api/#post_matrixclientv3accountpassword), [`/account/password/email/requestToken`](https://spec.matrix.org/v1.3/client-server-api/#post_matrixclientv3accountpasswordemailrequesttoken), [`/account/deactivate`](https://spec.matrix.org/v1.3/client-server-api/#post_matrixclientv3accountdeactivate) and [`/account/3pid/email/requestToken`](https://spec.matrix.org/v1.3/client-server-api/#post_matrixclientv3account3pidemailrequesttoken).
1 change: 0 additions & 1 deletion changelog.d/13188.misc

This file was deleted.