AntaresSimulatorTeam / AntaREST

API REST and WebUI for Antares_Simulator
Apache License 2.0
10 stars 6 forks source link

fix(pydantic): allow `str` fields to be populated by `int` #2166

Closed MartinBelthle closed 2 days ago

MartinBelthle commented 2 days ago

Fix [ANT-2255]

1- Introduces a class BaseModelInHouse to allow coercing and use it everywhere in the code 2- Little refactor to avoid circular import 3- Add test case that used to fail: Creation of a thermal cluster with the name 1111