Skip to content

Setup validations for forms with Pydantic #4

@jb3

Description

@jb3

We should use pydantic to create models for our form structure.

This issue should purely implement the models, there is no reason to add any routes for this yet.

Where possible we should perform as much validation as possible to ease stray data entering the database.

We should sanitise all fields that are not in the SCHEMA.md file in the root of the repository to avoid having MongoDB control characters entering the fray.

Metadata

Metadata

Assignees

Labels

P1High priority tasks.area: validationCode relating to validation of user input and Pydantic models.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions