Skip to content

Commit b74c9f4

Browse files
ensure that both the field name and alias work
1 parent cd00aec commit b74c9f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/models-library/src/models_library/projects_nodes_io.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ def legacy_enforce_str_to_int(cls, v):
176176
return int(v)
177177
return v
178178

179+
model_config = ConfigDict(
180+
populate_by_name=True
181+
)
182+
179183

180184
class SimCoreFileLink(BaseFileLink):
181185
"""I/O port type to hold a link to a file in simcore S3 storage"""

0 commit comments

Comments
 (0)