Skip to content
Snippets Groups Projects
Commit 7be4e630 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

CamelCase aliases for ModelConfiguration fields

parent 85f2f86c
No related branches found
No related tags found
No related merge requests found
......@@ -73,8 +73,8 @@ class Result(BaseModel):
class ModelConfiguration(BaseModel):
"""All the input data for the model."""
model_id: constr(min_length=10, max_length=10)
config_parameters: dict
model_id: constr(min_length=10, max_length=10) = Field(alias="modelId")
config_parameters: dict = Field(alias="configParameters")
# Can we do this and still serialize the object??
def get_config_parameter_as_date(self, param_name: str, required=True) -> datetime:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment