updated response models and event validations
This commit is contained in:
@@ -19,6 +19,9 @@ from api_validations.validations_request import (
|
||||
PatchRecord,
|
||||
ListOptions,
|
||||
)
|
||||
from api_validations.validations_response import (
|
||||
ListBuildingResponse
|
||||
)
|
||||
|
||||
from api_validations.core_response import AlchemyJsonResponse
|
||||
from api_events.events.abstract_class import MethodToEvent, ActionsSchema
|
||||
@@ -34,6 +37,9 @@ class BuildListEventMethods(MethodToEvent):
|
||||
__event_keys__ = {
|
||||
"68b3b5ed-b74c-4a27-820f-3959214e94e9": "build_list",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"68b3b5ed-b74c-4a27-820f-3959214e94e9": ListBuildingResponse,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def build_list(
|
||||
@@ -55,6 +61,7 @@ class BuildListEventMethods(MethodToEvent):
|
||||
completed=True,
|
||||
message="Building Records are listed",
|
||||
result=records,
|
||||
response_model=ListBuildingResponse,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user