{"title":"Pydantic \u3067\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u8ffd\u52a0\u3092\u7981\u6b62\u3059\u308b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2024%2F01%2F08%2F153047\" title=\"Pydantic \u3067\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u8ffd\u52a0\u3092\u7981\u6b62\u3059\u308b - \u307f\u30fc\u306e\u307a\u30fc\u3058\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://pc.atsuhiro-me.net/","provider_url":"https://hatena.blog","description":"Pydantic ConfigDict \u3092\u4f7f\u3044\u307e\u3059*1\uff0eallow, forbid, ignore \u304b\u3089\u9078\u629e\u3057\u307e\u3059\uff0e pydantic.Extra.forbid \u3084 Config class \u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3057\u305f\u304c\uff0cPydantic 2.x \u3067\u306f\u5968\u52b1\u3055\u308c\u3066\u3044\u307e\u305b\u3093\uff0e \u52d5\u4f5c\u78ba\u8a8d\u306e\u305f\u3081\u306e unittest \u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff0e\u30e2\u30c7\u30eb\u306b text \u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u5b9a\u7fa9\u3057\u307e\u3057\u305f\u304c\uff0cextra_text \u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u305b\u3093\uff0e\u3053\u308c\u3092\u8ffd\u52a0\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u306e\u6319\u52d5\u3092\u78ba\u8a8d\u3057\u307e\u3059\uff0e test.py import unittest from pydantic import BaseModel, Config\u2026","categories":["Python"],"type":"rich","author_name":"atsuhiro-me","blog_title":"\u307f\u30fc\u306e\u307a\u30fc\u3058","image_url":null,"url":"https://pc.atsuhiro-me.net/entry/2024/01/08/153047","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/atsuhiro-me/","height":"190","published":"2024-01-08 15:30:47","version":"1.0","width":"100%"}