FAIR-CA-indicators / fair-ca-indicators-backend

Apache License 2.0
0 stars 0 forks source link

Pydantic Models #1

Closed Fancien closed 1 year ago

Fancien commented 1 year ago

The different classes the user interacts with needs to be defined as pydantic Models. This includes:

These models needs to be defined in such a way that the documentation created by FastAPI is correct and includes all relevant attributes and parameters. For example, these models cannot define @property methods, as these are not picked up by FastAPI.

Fancien commented 1 year ago

Possible models:

Session:

Task:

TaskDescription: This describes the different tasks that are evaluated.

Fancien commented 1 year ago

Starting point for the models is done, but changes may be implemented based on future needs