File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
services/web/server/src/simcore_service_webserver/products Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55from models_library .api_schemas_webserver .product import GetCreditPrice , GetProduct
66from models_library .basic_types import IDStr
77from models_library .users import UserID
8- from pydantic import Extra , Field
8+ from pydantic import Field
99from servicelib .aiohttp .requests_validation import (
1010 RequestParams ,
1111 StrictRequestParams ,
@@ -70,8 +70,8 @@ async def _get_product(request: web.Request):
7070 except KeyError as err :
7171 raise web .HTTPNotFound (reason = f"{ product_name = } not found" ) from err
7272
73- assert GetProduct .Config . extra == Extra . ignore # nosec
74- data = GetProduct (** product .dict (), templates = [])
73+ assert GetProduct .model_config [ " extra" ] == " ignore" # nosec
74+ data = GetProduct (** product .model_dump (), templates = [])
7575 return envelope_json_response (data )
7676
7777
You can’t perform that action at this time.
0 commit comments