8 lines
266 B
Python
8 lines
266 B
Python
from pydantic import BaseModel, Field
|
|
|
|
from models.service import ServiceDocument
|
|
|
|
|
|
class ProxyDocument(BaseModel):
|
|
port: int = Field(..., description="Port number of the proxy")
|
|
service: ServiceDocument = Field(..., description="Associated service details") |