PersonName#
- pydantic model technote.config.PersonName#
A person’s name.
- Parameters:
data (
Any
) –
Show JSON schema
{ "title": "PersonName", "description": "A person's name.", "type": "object", "properties": { "family_names": { "title": "Family Names", "description": "The person's family name (last name in western culture).", "type": "string" }, "given_names": { "title": "Given Names", "description": "The person's given name (first name in western culture).", "type": "string" }, "name": { "title": "Name", "description": "The person's name, an alternative to specifying surname and given names.", "type": "string" } } }
- Fields:
- Validators:
check_well_defined
»all fields
- field family_names: Optional[str] = None#
The person’s family name (last name in western culture).
- Validated by:
- field given_names: Optional[str] = None#
The person’s given name (first name in western culture).
- Validated by:
- field name: Optional[str] = None#
The person’s name, an alternative to specifying surname and given names.
- Validated by:
- validator check_well_defined » all fields#
Check that either surname and given are both provided, or name alone is set
- validator clean_whitespace » name, family_names, given_names#