rb-commons 0.1.6__tar.gz → 0.1.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rb-commons
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Commons of project and simplified orm based on sqlalchemy.
5
5
  Home-page: https://github.com/Abdulvoris101/rb-commons
6
6
  Author: Abdulvoris
@@ -1,6 +1,6 @@
1
1
  import uuid
2
2
  from enum import Enum
3
- from pydantic import BaseModel, Field
3
+ from pydantic import BaseModel, Field, ConfigDict
4
4
 
5
5
 
6
6
  class UserRole(str, Enum):
@@ -9,9 +9,8 @@ class UserRole(str, Enum):
9
9
  GUEST = "guest"
10
10
 
11
11
  class Claims(BaseModel):
12
+ model_config = ConfigDict(extra="ignore")
13
+
12
14
  user_id: str = Field(None, alias="x-user-id")
13
15
  user_role: UserRole = Field(UserRole.GUEST, alias="x-user-role")
14
16
  shop_id: uuid.UUID = Field(None, alias="x-shop-id")
15
-
16
- class Config:
17
- extra = "ignore"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rb-commons
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Commons of project and simplified orm based on sqlalchemy.
5
5
  Home-page: https://github.com/Abdulvoris101/rb-commons
6
6
  Author: Abdulvoris
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="rb-commons",
8
- version="0.1.6",
8
+ version="0.1.7",
9
9
  author="Abdulvoris",
10
10
  author_email="erkinovabdulvoris101@gmail.com",
11
11
  description="Commons of project and simplified orm based on sqlalchemy.",
File without changes