base context for wrappers updated
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user