If you've ever passed a raw Python dict to an API and hoped for the best, Pydantic is the library that puts an end to that.
Karl from Vonage's tooling team joins Jeremy to talk about what it's like maintaining SDKs across six languages, and what he discovered when he started working on the Python SDK: Pydantic. They cover what Pydantic actually does, why validation errors as first-class citizens change how you think about data, and how the Vonage Python SDK uses it for request modeling, response parsing, and the model_dump pattern.
What you'll learn:
What Pydantic is and how it enforces types at runtime (not just statically)
How BaseModel, field validators, and model validators work
How the Vonage Python SDK uses Pydantic to validate API requests before they're sent
The model_dump(by_alias=True) pattern for snake_case ↔ camelCase mapping
Real-world conditional validation with @model_validator
📑 Chapters
00:00 Intro
01:08 Maintaining SDKs in six languages
03:40 Discovering Pydantic in the Python SDK
04:37 What is Pydantic?
05:39 Validation errors as first-class citizens
06:27 Field and model validators
07:14 How the Vonage Python SDK uses Pydantic
08:37 The model_dump pattern
09:40 Conditional validation with model_validator
11:22 Wrap-up and resources
Try Vonage APIs Today: https://vonage.dev/youtube
📺 Resources
Pydantic documentation: https://docs.pydantic.dev/
Vonage Python SDK (open source): https://github.com/Vonage/vonage-pyth...
⌛ Keep Up-to-Date
Subscribe to the Vonage Developer Channel: / @vonagedev
Join our Slack community: https://developer.vonage.com/en/commu...
Follow us on Twitter/X: / vonagedev
Read our blog: https://developer.vonage.com/en/blog
Join our newsletter: https://vonage.dev/newsletter
⭐ About Vonage APIs
Vonage APIs empower developers to seamlessly incorporate communication capabilities, offering a robust suite of tools for building innovative applications. From embedding voice, messaging, and video features to enabling two-way conversations across various channels, Vonage APIs provide a flexible and scalable solution for enhancing user experiences in the digital communication landscape. Integrate SMS, voice, video, and two-factor authentication into your apps with Vonage communication APIs. Build complex conversational flows with a user-friendly drag-and-drop interface in Vonage AI Studio.
🏷️ Keywords
pydantic, python, data-validation, type-hints, vonage-sdk, basemodel, runtime-validation, api-integration, python-sdk, sdk-development, multi-language, field-validator, model-dump
Nesta página do site você pode assistir ao vídeo on-line Why Pydantic Powers the Vonage Python SDK duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Vonage Developer 17 Junho 2026, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 26 vezes e gostou 2 espectadores. Boa visualização!