3 ms·
I've found that using construct() to skip validation is great when a model has e.g. a `List[float]` attribute with a length of 10k+ items. But this has to be do
by mulmboy 5y ago
I've found that using construct() to skip validation is great when a model has e.g. a `List[float]` attribute with a length of 10k+ items. But this has to be done judiciously.
https://pydantic-docs.helpmanual.io/usage/models/#creating-models-without-validation https://pydantic-docs.helpmanual.io/usage/models/#creating-m...
In the case of GeoJSON it might be worth using a custom data type with specific faster validation.
https://pydantic-docs.helpmanual.io/usage/types/#custom-data-types https://pydantic-docs.helpmanual.io/usage/types/#custom-data...