File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
packages/models-library/src/models_library/api_schemas_webserver
services/web/server/src/simcore_service_webserver/projects Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11"""
2- Base model classes for schemas in OpenAPI specs (OAS) for this service
2+ Base model classes for schemas in OpenAPI specs (OAS) for this service
33
44"""
55
@@ -31,7 +31,9 @@ class InputSchemaWithoutCamelCase(BaseModel):
3131
3232class InputSchema (BaseModel ):
3333 model_config = ConfigDict (
34- ** InputSchemaWithoutCamelCase .model_config ,
34+ populate_by_name = False ,
35+ extra = "ignore" , # Non-strict inputs policy: Used to prune extra field
36+ frozen = True ,
3537 alias_generator = snake_to_camel ,
3638 )
3739
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class ProjectPatchInternalExtended(ProjectPatch):
112112 trashed_by : UserID | None
113113 trashed_explicitly : bool
114114
115- model_config = ConfigDict (populate_by_name = True , extra = "forbid" )
115+ model_config = ConfigDict (validate_by_name = True , extra = "forbid" )
116116
117117 def to_domain_model (self ) -> dict [str , Any ]:
118118 return remap_keys (
You can’t perform that action at this time.
0 commit comments