Skip to content

Commit

Permalink
missing config
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Nov 19, 2024
1 parent f442e63 commit 295832a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/models-library/src/models_library/rest_base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pydantic import BaseModel, Extra
from pydantic import BaseModel, ConfigDict


class RequestParameters(BaseModel):
Expand All @@ -15,5 +15,4 @@ def as_params(self, **export_options) -> dict[str, str]:
class StrictRequestParameters(RequestParameters):
"""Use a base class for context, path and query parameters"""

class Config:
extra = Extra.forbid # strict
model_config = ConfigDict(extra="forbid")

0 comments on commit 295832a

Please sign in to comment.