allow data models without name

This commit is contained in:
Sina Atalay 2024-02-20 20:11:03 +01:00
parent ddaad438af
commit 19a2dbb6a5
1 changed files with 2 additions and 1 deletions

View File

@ -855,7 +855,8 @@ class SocialNetwork(RenderCVBaseModel):
class CurriculumVitae(RenderCVBaseModel): class CurriculumVitae(RenderCVBaseModel):
"""This class is the data model of the CV.""" """This class is the data model of the CV."""
name: str = pydantic.Field( name: Optional[str] = pydantic.Field(
default=None,
title="Name", title="Name",
description="The name of the person.", description="The name of the person.",
) )