PersonName#

pydantic model technote.sources.tomlsettings.PersonName#

A person’s name.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "PersonName",
   "description": "A person's name.",
   "type": "object",
   "properties": {
      "family": {
         "description": "The person's family name (last name in western culture).",
         "title": "Family",
         "type": "string"
      },
      "given": {
         "description": "The person's given name (first name in western culture).",
         "title": "Given",
         "type": "string"
      }
   },
   "required": [
      "family",
      "given"
   ]
}

Fields:
Validators:
field family: str [Required]#

The person’s family name (last name in western culture).

Validated by:
field given: str [Required]#

The person’s given name (first name in western culture).

Validated by:
validator clean_whitespace  »  given, family#
Return type:

Optional[str]

Parameters:

v (Optional[str]) –

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.