services updated
This commit is contained in:
20
Events/AllEvents/validations/validation/models.py
Normal file
20
Events/AllEvents/validations/validation/models.py
Normal file
@@ -0,0 +1,20 @@
|
||||
"""
|
||||
Validation records request and response models.
|
||||
"""
|
||||
|
||||
from typing import Optional
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class ValidationsPydantic(BaseModel):
|
||||
event_code: str
|
||||
type: Optional[str] = "REQUEST"
|
||||
asked_field: Optional[str] = "all"
|
||||
|
||||
|
||||
class ClusterPydantic(BaseModel):
|
||||
name: str
|
||||
|
||||
|
||||
class PagePydantic(BaseModel):
|
||||
page: str
|
||||
Reference in New Issue
Block a user