Skip to content
You're viewing docs for v2.0. See the latest version →

Types/extra types/extra types

For types that are more complex, or don’t need to be on Pydantic itself, we have the Pydantic Extra Types project.

{{ install_pydantic_extra_types }}

The following types are supported by Pydantic Extra Types:

  • Color Types — color validation types.
  • Payment Card Numbers — a type that allows you to store payment card numbers in your model.
  • Phone Numbers — a type that allows you to store phone numbers in your model.
  • Routing Numbers — a type that allows you to store ABA transit routing numbers in your model.
  • MAC Address — a type that allows you to store MAC addresses in your model.