This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Audit or add validation to rest endpoints in synapse/rest/client/filter.py
#14265
Labels
A-Validation
500 (mostly) errors due to lack of event/parameter validation
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
Z-Cleanup
Things we want to get rid of, but aren't actively causing pain
Milestone
Only one endpoint here: CreateFilterRestServlet's POST
(there's a GET endpoint but there's not much to validate there)
We have a JSONSchema for filter definitions. Could try using https://pydantic-docs.helpmanual.io/datamodel_code_generator/ to generate the model rather than doing it from first principles.
The text was updated successfully, but these errors were encountered: