You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the config for steps are vary cluttered and difficult to read. This is because the different types requires different validation, as seen below:
Currently the config for steps are vary cluttered and difficult to read. This is because the different types requires different validation, as seen below:
ert/ert3/config/_stages_config.py
Lines 83 to 112 in d1385bb
Suggestion is to instead make different sub-classes for the different types, and let them handle the validation.
POC:
Interesting links:
pydantic/pydantic#503
https://github.com/samuelcolvin/pydantic/pull/469/files
https://stackoverflow.com/questions/58301364/pydantic-and-subclasses-of-abstract-class
pydantic/pydantic#619
pydantic/pydantic#265
The text was updated successfully, but these errors were encountered: