The current system of using threats defined in JSON is a little bit hard to use/maintain. The conditions for a threat are written as a string, then eval'ed which is not ideal.
With the pydantic models, it should be easy to define threats as python classes and allow for type hinting, unit tests, linting etc
The current system of using threats defined in JSON is a little bit hard to use/maintain. The conditions for a threat are written as a string, then eval'ed which is not ideal.
With the pydantic models, it should be easy to define threats as python classes and allow for type hinting, unit tests, linting etc