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  »  family, given
Parameters:

v (str | None)

Return type:

str | None