base context for wrappers updated

This commit is contained in:
2025-01-17 20:00:53 +03:00
parent 61229cb761
commit 628f6bd483
21 changed files with 404 additions and 300 deletions

View File

@@ -1,3 +1,5 @@
from ApiValidations.Request import BaseModelRegular
from typing import Optional
@@ -55,15 +57,11 @@ class OccupantSelectionValidation:
class OccupantSelection(BaseModel, OccupantSelectionValidation):
occupant_uu_id: str = Field(..., example="123e4567-e89b-12d3-a456-426614174000")
build_part_uu_id: str = Field(..., example="987fcdeb-51a2-43e7-9876-543210987654")
build_living_space_uu_id: str = Field(..., example="987fcdeb-51a2-43e7-9876-543210987654")
model_config = ConfigDict(
json_schema_extra={
"example": {
"occupant_uu_id": "123e4567-e89b-12d3-a456-426614174000",
"build_part_uu_id": "987fcdeb-51a2-43e7-9876-543210987654",
}
"example": {"build_living_space_uu_id": "987fcdeb-51a2-43e7-9876-543210987654"}
}
)
@@ -107,10 +105,10 @@ class Login(BaseModelRegular, LoginValidation):
model_config = ConfigDict(
json_schema_extra={
"example": {
"domain": "example.com",
"access_key": "user@example.com",
"password": "password123",
"remember_me": True,
"domain": "evyos.com.tr",
"access_key": "karatay.berkay.sup@evyos.com.tr",
"password": "string",
"remember_me": False
}
}
)