wi2trier / cbrkit

Customizable Case-Based Reasoning (CBR) toolkit for Python with a built-in API and CLI.
https://wi2trier.github.io/cbrkit/
MIT License
6 stars 4 forks source link

Validation with Pydantic #82

Closed mirkolenz closed 5 months ago

mirkolenz commented 6 months ago

It is already possible to manually use Pydantic with CBRkit (i.e., by not using our built-in loaders and using Pydantic models instead), but we currently do not have documentation on how to do it. We should add a corresponding section to the docstring in the file cbrkit.loaders.__init__.py.

Additionally, we should explore how to directly integrate Pydantic with the built-in loaders so that the user only needs to pass the Pydantic model in order to have the entire case base validated.

mirkolenz commented 5 months ago

Implemented in #87