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

Validate data passed to REST endpoints

Open
No due date
Last updated Nov 29, 2022
33% complete

Tracking issue #13147

This includes:

  • any API in the matrix spec
  • the admin API
  • request bodies, probably easiest to validate with Pydantic
  • url parameters and query strings---not sure how to validate these

rg --case-sensitive "def .*(POST|PUT|DELETE|GET).*\(" synapse gives a crude way to work out what needs to be done.

Related: #8445.

Not related: #12651. That's for Synapse's config only. (Though see https://pydantic-docs.helpmanual.io/usage/settings/)

I propose to use Pydantic for verifying payloads after deserialisation.

List view

    There are no open issues in this milestone

    Add issues to milestones to help organize your work for a particular release or project. Find and add issues with no milestones in this repo.