From 7be4e6302aad4a650ceb4a212aed569c626523fe Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Tue, 14 Feb 2023 14:23:45 +0100
Subject: [PATCH] CamelCase aliases for ModelConfiguration fields

---
 src/vipscore_common/entities.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/vipscore_common/entities.py b/src/vipscore_common/entities.py
index 338af1a..b40a0eb 100755
--- a/src/vipscore_common/entities.py
+++ b/src/vipscore_common/entities.py
@@ -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:
-- 
GitLab