When the ConfigModels have been removed everywhere so all classes can be validated using the schema registry it would be useful to add an option to make validation during object creation option.
These can then be the different situations:
-
When loading in from an external source (yaml file etc) and having the factory automatically build the devices it is sufficient to validate only once directly after the data has been loaded. Validation again during object creation can be false.
-
If building the object yourself you can still validate the input as part of the object creation by having it true.
-
If there is a problem with pydantic you can turn both types of validation off.
When the ConfigModels have been removed everywhere so all classes can be validated using the schema registry it would be useful to add an option to make validation during object creation option.
These can then be the different situations:
When loading in from an external source (yaml file etc) and having the factory automatically build the devices it is sufficient to validate only once directly after the data has been loaded. Validation again during object creation can be false.
If building the object yourself you can still validate the input as part of the object creation by having it true.
If there is a problem with pydantic you can turn both types of validation off.