Spaces:
Sleeping
Sleeping
File size: 818 Bytes
0225ffc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 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": []
}
}
} |