7 lines
297 B
Python
7 lines
297 B
Python
from pydantic import BaseModel, Field
|
|
|
|
class ServiceDocument(BaseModel):
|
|
name: str = Field(..., description="Name of the service")
|
|
port: int = Field(..., description="Port number of the service")
|
|
category: str = Field(..., description="Category of the service (e.g., web, pwn, etc.)")
|