34 lines
814 B
Python
34 lines
814 B
Python
from typing import Callable
|
|
|
|
|
|
class ValidationActions:
|
|
|
|
def __init__(self, function_code: str, func: Callable = None):
|
|
self.function_code = function_code
|
|
self.func = func
|
|
|
|
@classmethod
|
|
def retrieve_validation(cls):
|
|
"""
|
|
Retrieve validation [] by validation via [Response Model of Table]
|
|
"""
|
|
return
|
|
|
|
@classmethod
|
|
def retrieve_headers(cls):
|
|
"""
|
|
Retrieve headers for validations [] by event function code [Response Model of Table]
|
|
"""
|
|
return
|
|
|
|
@classmethod
|
|
def retrieve_validations_and_headers(cls):
|
|
"""
|
|
Retrieve validations and headers [] via event function code [Response Model of Table][]
|
|
"""
|
|
return
|
|
|
|
|
|
# Singleton class
|
|
validation_action = ValidationActions(function_code="")
|