背景:在Pydantic库的更新过程中,为了保持API的一致性和清晰性,开发者对一些属性或参数进行了重命名。 含义:schema_extra是Pydantic中用于自定义JSON Schema额外信息的属性。在新版本中,它被重命名为json_schema_extra,以更清晰地表达其用途。 2. 查找并替换'schema_extra' 你需要在你的代码或配置文件中查找所有使用...
Deploying pydantic-docs with Cloudflare Pages Latest commit: bf139df Status: ✅ Deploy successful! Preview URL: https://7ddb0c48.pydantic-docs.pages.dev Branch Preview URL: https://json-schema-extra-final.pydantic-docs.pages.dev View logs sydney-runkle removed the relnotes-fix label Jun...
$ gh repo clone pydantic/pydantic-extra-types $ cd pydantic-extra-types $ python3.12 -m venv _e $ . _e/bin/activate (_e) $ pip install -e .[all] (_e) $ pip install -r requirements/testing.in (_e) $ python -m pytest […] === FAILURES ===...
📝 Update includes for docs/en/docs/tutorial/schema-extra-example.md Also update Pydantic v1 example variant tag to fix support for new plugin syntax. tiangolo added 3 commits November 9, 2024 15:29 🚚 Rename Pydantic v1 file for new include fe6ae21 ✅ Update test name cbf0ea2 ...
Bug Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())": pydantic version: 1.5.1 pydantic compiled: True python version: 3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)] platform: Windows-1...
pydantic version: 1.5.1 pydantic compiled: False install path: /home/pawamoy/.cache/pypoetry/virtualenvs/pytkdocs-LMVK1zAi-py3.7/lib/python3.7/site-packages/pydantic python version: 3.7.5 (default, Apr 27 2020, 16:40:42) [GCC 9.3.0] platform: Linux-5.6.15-arch1-1-x86_64-with-arch ...
This PR closes #75. It addresses #75 in the follow manner. Make the models disallow data instances that have extra fields other than the "@context" field in both Pydantic and JSON level. The Pydan...