ML-Learner / server /api /models /template_model.py
VashuTheGreat2's picture
Upload folder using huggingface_hub
0225ffc verified
Raw History Blame Contribute Delete
818 Bytes
from pydantic import BaseModel, Field
from typing import Any
class UpdateTemplateBody(BaseModel):
"""
Schema for updating templates (e.g. resume information schemas or coding configs).
"""
content: Any = Field(
...,
description="The updated template content. This can be a structured dictionary or any arbitrary object representing template settings.",
example={"work_experience": [{"company": "Google", "role": "ML Engineer"}]}
)
class Config:
json_schema_extra = {
"example": {
"content": {
"personal_info": {"name": "John Doe", "email": "john@example.com"},
"skills": ["Python", "Machine Learning", "FastAPI"],
"experience": []
}
}
}