]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/log
thirdparty/fastapi/fastapi.git
23 months ago🎨 [pre-commit.ci] Auto format from pre-commit.com hooks feat/custom-generate-json-schema 9873/head
pre-commit-ci[bot] [Fri, 21 Jul 2023 13:51:23 +0000 (13:51 +0000)] 
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

23 months agopotato
Marcelo Trylesinski [Fri, 21 Jul 2023 13:44:14 +0000 (15:44 +0200)] 
potato

23 months agoFix bug, update tests to work with latest pydantic
David Montague [Thu, 13 Jul 2023 16:25:49 +0000 (10:25 -0600)] 
Fix bug, update tests to work with latest pydantic

23 months ago✨ Add custom GenerateJsonSchema
Marcelo Trylesinski [Thu, 13 Jul 2023 15:58:14 +0000 (17:58 +0200)] 
✨ Add custom GenerateJsonSchema

2 years ago📝 Update release notes
github-actions [Sun, 9 Jul 2023 15:45:55 +0000 (15:45 +0000)] 
📝 Update release notes

2 years ago📝 Update release notes
github-actions [Sun, 9 Jul 2023 15:44:58 +0000 (15:44 +0000)] 
📝 Update release notes

2 years ago👷 Update FastAPI People token (#9844)
Sebastián Ramírez [Sun, 9 Jul 2023 15:44:40 +0000 (17:44 +0200)] 
👷 Update FastAPI People token (#9844)

2 years ago👥 Update FastAPI People (#9775) 9890/head
Sebastián Ramírez [Sun, 9 Jul 2023 15:44:21 +0000 (17:44 +0200)] 
👥 Update FastAPI People (#9775)

Co-authored-by: github-actions <github-actions@github.com>
2 years ago📝 Update release notes
github-actions [Sun, 9 Jul 2023 15:40:19 +0000 (15:40 +0000)] 
📝 Update release notes

2 years ago👷 Update MkDocs Material token (#9843)
Sebastián Ramírez [Sun, 9 Jul 2023 15:39:42 +0000 (17:39 +0200)] 
👷 Update MkDocs Material token (#9843)

2 years ago📝 Update release notes
github-actions [Sun, 9 Jul 2023 14:37:16 +0000 (14:37 +0000)] 
📝 Update release notes

2 years ago👷 Update token for latest changes (#9842)
Sebastián Ramírez [Sun, 9 Jul 2023 14:34:45 +0000 (16:34 +0200)] 
👷 Update token for latest changes (#9842)

2 years ago📝 Update release notes
github-actions [Fri, 7 Jul 2023 18:15:42 +0000 (18:15 +0000)] 
📝 Update release notes

2 years ago📝 Update links for self-hosted Swagger UI, point to v5, for OpenAPI 31.0 (#9834)
Sebastián Ramírez [Fri, 7 Jul 2023 18:15:08 +0000 (20:15 +0200)] 
📝 Update links for self-hosted Swagger UI, point to v5, for OpenAPI 31.0 (#9834)

📝 Update links for self-hosted Swagger UI, point to v5, for OpenAPI 3.1.0

2 years ago🔖 Release version 0.100.0 0.100.0
Sebastián Ramírez [Fri, 7 Jul 2023 17:25:59 +0000 (19:25 +0200)] 
🔖 Release version 0.100.0

2 years ago📝 Update release notes
Sebastián Ramírez [Fri, 7 Jul 2023 17:14:54 +0000 (19:14 +0200)] 
📝 Update release notes

2 years ago📝 Update release notes
github-actions [Fri, 7 Jul 2023 17:12:58 +0000 (17:12 +0000)] 
📝 Update release notes

2 years ago✨ Add support for Pydantic v2 (#9816)
Sebastián Ramírez [Fri, 7 Jul 2023 17:12:13 +0000 (19:12 +0200)] 
✨ Add support for Pydantic v2 (#9816)

* ✨ Pydantic v2 migration, initial implementation (#9500)

* ✨ Add compat layer, for Pydantic v1 and v2

* ✨ Re-export Pydantic needed internals from compat, to later patch them for v1

* ♻️ Refactor internals to use new compatibility layers and run with Pydantic v2

* 📝 Update examples to run with Pydantic v2

* ✅ Update tests to use Pydantic v2

* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

* ✅ Temporarily disable Peewee tests, afterwards I'll enable them only for Pydantic v1

* 🐛 Fix JSON Schema generation and OpenAPI ref template

* 🐛 Fix model field creation with defaults from Pydantic v2

* 🐛 Fix body field creation, with new FieldInfo

* ✨ Use and check new ResponseValidationError for server validation errors

* ✅ Fix test_schema_extra_examples tests with ResponseValidationError

* ✅ Add dirty-equals to tests for compatibility with Pydantic v1 and v2

* ✨ Add util to regenerate errors with custom loc

* ✨ Generate validation errors with loc

* ✅ Update tests for compatibility with Pydantic v1 and v2

* ✅ Update tests for Pydantic v2 in tests/test_filter_pydantic_sub_model.py

* ✅ Refactor tests in tests/test_dependency_overrides.py for Pydantic v2, separate parameterized into independent tests to use insert_assert

* ✅ Refactor OpenAPI test for tests/test_infer_param_optionality.py for consistency, and make it compatible with Pydantic v1 and v2

* ✅ Update tests for tests/test_multi_query_errors.py for Pydantic v1 and v2

* ✅ Update tests for tests/test_multi_body_errors.py for Pydantic v1 and v2

* ✅ Update tests for tests/test_multi_body_errors.py for Pydantic v1 and v2

* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

* ♻️ Refactor tests for tests/test_path.py to inline pytest parameters, to make it easier to make them compatible with Pydantic v2

* ✅ Refactor and udpate tests for tests/test_path.py for Pydantic v1 and v2

* ♻️ Refactor and update tests for tests/test_query.py with compatibility for Pydantic v1 and v2

* ✅ Fix test with optional field without default None

* ✅ Update tests for compatibility with Pydantic v2

* ✅ Update tutorial tests for Pydantic v2

* ♻️ Update OAuth2 dependencies for Pydantic v2

* ♻️ Refactor str check when checking for sequence types

* ♻️ Rename regex to pattern to keep in sync with Pydantic v2

* ♻️ Refactor _compat.py, start moving conditional imports and declarations to specifics of Pydantic v1 or v2

* ✅ Update tests for OAuth2 security optional

* ✅ Refactor tests for OAuth2 optional for Pydantic v2

* ✅ Refactor tests for OAuth2 security for compatibility with Pydantic v2

* 🐛 Fix location in compat layer for Pydantic v2 ModelField

* ✅ Refactor tests for Pydantic v2 in tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

* 🐛 Add missing markers in Python 3.9 tests

* ✅ Refactor tests for bigger apps for consistency with annotated ones and with support for Pydantic v2

* 🐛 Fix jsonable_encoder with new Pydantic v2 data types and Url

* 🐛 Fix invalid JSON error for compatibility with Pydantic v2

* ✅ Update tests for behind_a_proxy for Pydantic v2

* ✅ Update tests for tests/test_tutorial/test_body/test_tutorial001_py310.py for Pydantic v2

* ✅ Update tests for tests/test_tutorial/test_body/test_tutorial001.py with Pydantic v2 and consistency with Python 3.10 tests

* ✅ Fix tests for tutorial/body_fields for Pydantic v2

* ✅ Refactor tests for tutorial/body_multiple_params with Pydantic v2

* ✅ Update tests for tutorial/body_nested_models for Pydantic v2

* ✅ Update tests for tutorial/body_updates for Pydantic v2

* ✅ Update test for tutorial/cookie_params for Pydantic v2

* ✅ Fix tests for tests/test_tutorial/test_custom_request_and_route/test_tutorial002.py for Pydantic v2

* ✅ Update tests for tutorial/dataclasses for Pydantic v2

* ✅ Update tests for tutorial/dependencies for Pydantic v2

* ✅ Update tests for tutorial/extra_data_types for Pydantic v2

* ✅ Update tests for tutorial/handling_errors for Pydantic v2

* ✅ Fix test markers for Python 3.9

* ✅ Update tests for tutorial/header_params for Pydantic v2

* ✅ Update tests for Pydantic v2 in tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py

* ✅ Fix extra tests for Pydantic v2

* ✅ Refactor test for parameters, to later fix Pydantic v2

* ✅ Update tests for tutorial/query_params for Pydantic v2

* ♻️ Update examples in docs to use new pattern instead of the old regex

* ✅ Fix several tests for Pydantic v2

* ✅ Update and fix test for ResponseValidationError

* 🐛 Fix check for sequences vs scalars, include bytes as scalar

* 🐛 Fix check for complex data types, include UploadFile

* 🐛 Add list to sequence annotation types

* 🐛 Fix checks for uploads and add utils to find if an annotation is an upload (or bytes)

* ✨ Add UnionType and NoneType to compat layer

* ✅ Update tests for request_files for compatibility with Pydantic v2 and consistency with other tests

* ✅ Fix testsw for request_forms for Pydantic v2

* ✅ Fix tests for request_forms_and_files for Pydantic v2

* ✅ Fix tests in tutorial/security for compatibility with Pydantic v2

* ⬆️ Upgrade required version of email_validator

* ✅ Fix tests for params repr

* ✅ Add Pydantic v2 pytest markers

* Use match_pydantic_error_url

* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

* Use field_serializer instead of encoders in some tests

* Show Undefined as ... in repr

* Mark custom encoders test with xfail

* Update test to reflect new serialization of Decimal as str

* Use `model_validate` instead of `from_orm`

* Update JSON schema to reflect required nullable

* Add dirty-equals to pyproject.toml

* Fix locs and error creation for use with pydantic 2.0a4

* Use the type adapter for serialization. This is hacky.

* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

* ✅ Refactor test_multi_body_errors for compatibility with Pydantic v1 and v2

* ✅ Refactor test_custom_encoder for Pydantic v1 and v2

* ✅ Set input to None for now, for compatibility with current tests

* 🐛 Fix passing serialization params to model field when handling the response

* ♻️ Refactor exceptions to not depend on Pydantic ValidationError class

* ♻️ Revert/refactor params to simplify repr

* ✅ Tweak tests for custom class encoders for Pydantic v1 and v2

* ✅ Tweak tests for jsonable_encoder for Pydantic v1 and v2

* ✅ Tweak test for compatibility with Pydantic v1 and v2

* 🐛 Fix filtering data with subclasses

* 🐛 Workaround examples in OpenAPI schema

* ✅ Add skip marker for SQL tutorial, needs to be updated either way

* ✅ Update test for broken JSON

* ✅ Fix test for broken JSON

* ✅ Update tests for timedeltas

* ✅ Fix test for plain text validation errors

* ✅ Add markers for Pydantic v1 exclusive tests (for now)

* ✅ Update test for path_params with enums for compatibility with Pydantic v1 and v2

* ✅ Update tests for extra examples in OpenAPI

* ✅ Fix tests for response_model with compatibility with Pydantic v1 and v2

* 🐛 Fix required double serialization for different types of models

* ✅ Fix tests for response model with compatibility with new Pydantic v2

* 🐛 Import Undefined from compat layer

* ✅ Fix tests for response_model for Pydantic v2

* ✅ Fix tests for schema_extra for Pydantic v2

* ✅ Add markers and update tests for Pydantic v2

* 💡 Comment out logic for double encoding that breaks other usecases

* ✅ Update errors for int parsing

* ♻️ Refactor re-enabling compatibility for Pydantic v1

* ♻️ Refactor OpenAPI utils to re-enable support for Pydantic v1

* ♻️ Refactor dependencies/utils and _compat for compatibility with Pydantic v1

* 🐛 Fix and tweak compatibility with Pydantic v1 and v2 in dependencies/utils

* ✅ Tweak tests and examples for Pydantic v1

* ♻️ Tweak call to ModelField.validate for compatibility with Pydantic v1

* ✨ Use new global override TypeAdapter from_attributes

* ✅ Update tests after updating from_attributes

* 🔧 Update pytest config to avoid collecting tests from docs, useful for editor-integrated tests

* ✅ Add test for data filtering, including inheritance and models in fields or lists of models

* ♻️ Make OpenAPI models compatible with both Pydantic v1 and v2

* ♻️ Fix compatibility for Pydantic v1 and v2 in jsonable_encoder

* ♻️ Fix compatibility in params with Pydantic v1 and v2

* ♻️ Fix compatibility when creating a FieldInfo in Pydantic v1 and v2 in utils.py

* ♻️ Fix generation of flat_models and JSON Schema definitions in _compat.py for Pydantic v1 and v2

* ♻️ Update handling of ErrorWrappers for Pydantic v1

* ♻️ Refactor checks and handling of types an sequences

* ♻️ Refactor and cleanup comments with compatibility for Pydantic v1 and v2

* ♻️ Update UploadFile for compatibility with both Pydantic v1 and v2

* 🔥 Remove commented out unneeded code

* 🐛 Fix mock of get_annotation_from_field_info for Pydantic v1 and v2

* 🐛 Fix params with compatibility for Pydantic v1 and v2, with schemas and new pattern vs regex

* 🐛 Fix check if field is sequence for Pydantic v1

* ✅ Fix tests for custom_schema_fields, for compatibility with Pydantic v1 and v2

* ✅ Simplify and fix tests for jsonable_encoder with compatibility for Pydantic v1 and v2

* ✅ Fix tests for orm_mode with Pydantic v1 and compatibility with Pydantic v2

* ♻️ Refactor logic for normalizing Pydantic v1 ErrorWrappers

* ♻️ Workaround for params with examples, before defining what to deprecate in Pydantic v1 and v2 for examples with JSON Schema vs OpenAPI

* ✅ Fix tests for Pydantic v1 and v2 for response_by_alias

* ✅ Fix test for schema_extra with compatibility with Pydantic v1 and v2

* ♻️ Tweak error regeneration with loc

* ♻️ Update error handling and serializationwith compatibility for Pydantic v1 and v2

* ♻️ Re-enable custom encoders for Pydantic v1

* ♻️ Update ErrorWrapper reserialization in Pydantic v1, do it outside of FastAPI ValidationExceptions

* ✅ Update test for filter_submodel, re-structure to simplify testing while keeping division of Pydantic v1 and v2

* ✅ Refactor Pydantic v1 only test that requires modifying environment variables

* 🔥 Update test for plaintext error responses, for Pydantic v1 and v2

* ⏪️ Revert changes in DB tutorial to use Pydantic v1 (the new guide will have SQLModel)

* ✅ Mark current SQL DB tutorial tests as Pydantic only

* ♻️ Update datastructures for compatibility with Pydantic v1, not requiring pydantic-core

* ♻️ Update encoders.py for compatibility with Pydantic v1

* ⏪️ Revert changes to Peewee, the docs for that are gonna live in a new HowTo section, not in the main tutorials

* ♻️ Simplify response body kwargs generation

* 🔥 Clean up comments

* 🔥 Clean some tests and comments

* ✅ Refactor tests to match new Pydantic error string URLs

* ✅ Refactor tests for recursive models for Pydantic v1 and v2

* ✅ Update tests for Peewee, re-enable, Pydantic-v1-only

* ♻️ Update FastAPI params to take regex and pattern arguments

* ⏪️ Revert tutorial examples for pattern, it will be done in a subsequent PR

* ⏪️ Revert changes in schema extra examples, it will be added later in a docs-specific PR

* 💡 Add TODO comment to document str validations with pattern

* 🔥 Remove unneeded comment

* 📌 Upgrade Pydantic pin dependency

* ⬆️ Upgrade email_validator dependency

* 🐛 Tweak type annotations in _compat.py

* 🔇 Tweak mypy errors for compat, for Pydantic v1 re-imports

* 🐛 Tweak and fix type annotations

* ➕ Update requirements-test.txt, re-add dirty-equals

* 🔥 Remove unnecessary config

* 🐛 Tweak type annotations

* 🔥 Remove unnecessary type in dependencies/utils.py

* 💡 Update comment in routing.py

---------

Co-authored-by: David Montague <35119617+dmontagu@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* 👷 Add CI for both Pydantic v1 and v2 (#9688)

* 👷 Test and install Pydantic v1 and v2 in CI

* 💚 Tweak CI config for Pydantic v1 and v2

* 💚 Fix Pydantic v2 specification in CI

* 🐛 Fix type annotations for compatibility with Python 3.7

* 💚 Install Pydantic v2 for lints

* 🐛 Fix type annotations for Pydantic v2

* 💚 Re-use test cache for lint

* ♻️ Refactor internals for test coverage and performance (#9691)

* ♻️ Tweak import of Annotated from typing_extensions, they are installed anyway

* ♻️ Refactor _compat to define functions for Pydantic v1 or v2 once instead of checking inside

* ✅ Add test for UploadFile for Pydantic v2

* ♻️ Refactor types and remove logic for impossible cases

* ✅ Add missing tests from test refactor for path params

* ✅ Add tests for new decimal encoder

* 💡 Add TODO comment for decimals in encoders

* 🔥 Remove unneeded dummy function

* 🔥 Remove section of code in field_annotation_is_scalar covered by sub-call to field_annotation_is_complex

* ♻️ Refactor and tweak variables and types in _compat

* ✅ Add tests for corner cases and compat with Pydantic v1 and v2

* ♻️ Refactor type annotations

* 🔖 Release version 0.100.0-beta1

* ♻️ Refactor parts that use optional requirements to make them compatible with installations without them (#9707)

* ♻️ Refactor parts that use optional requirements to make them compatible with installations without them

* ♻️ Update JSON Schema for email field without email-validator installed

* 🐛 Fix support for Pydantic v2.0, small changes in their final release (#9771)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
* 🔖 Release version 0.100.0-beta2

* ✨ OpenAPI 3.1.0 with Pydantic v2, merge `master` (#9773)

* ➕ Add dirty-equals as a testing dependency (#9778)

➕ Add dirty-equals as a testing dependency, it seems it got lsot at some point

* 🔀 Merge master, fix valid JSON Schema accepting bools (#9782)

* ⏪️ Revert usage of custom logic for TypeAdapter JSON Schema, solved on the Pydantic side (#9787)

⏪️ Revert usage of custom logic for TypeAdapter JSON Schema, solved on Pydantic side

* ♻️ Deprecate parameter `regex`, use `pattern` instead (#9786)

* 📝 Update docs to deprecate regex, recommend pattern

* ♻️ Update examples to use new pattern instead of regex

* 📝 Add new example with deprecated regex

* ♻️ Add deprecation notes and warnings for regex

* ✅ Add tests for regex deprecation

* ✅ Update tests for compatibility with Pydantic v1

* ✨ Update docs to use Pydantic v2 settings and add note and example about v1 (#9788)

* ➕ Add pydantic-settings to all extras

* 📝 Update docs for Pydantic settings

* 📝 Update Settings source examples to use Pydantic v2, and add a Pydantic v1 version

* ✅ Add tests for settings with Pydantic v1 and v2

* 🔥 Remove solved TODO comment

* ♻️ Update conditional OpenAPI to use new Pydantic v2 settings

* ✅ Update tests to import Annotated from typing_extensions for Python < 3.9 (#9795)

* ➕ Add pydantic-extra-types to fastapi[extra]

* ➕ temp: Install Pydantic from source to test JSON Schema metadata fixes (#9777)

* ➕ Install Pydantic from source, from branch for JSON Schema with metadata

* ➕ Update dependencies, install Pydantic main

* ➕ Fix dependency URL for Pydantic from source

* ➕ Add pydantic-settings for test requirements

* 💡 Add TODO comments to re-enable Pydantic main (not from source) (#9796)

* ✨ Add new Pydantic Field param options to Query, Cookie, Body, etc. (#9797)

* 📝 Add docs for Pydantic v2 for `docs/en/docs/advanced/path-operation-advanced-configuration.md` (#9798)

* 📝 Update docs in examples for settings with Pydantic v2 (#9799)

* 📝 Update JSON Schema `examples` docs with Pydantic v2 (#9800)

* ♻️ Use new Pydantic v2 JSON Schema generator (#9813)

Co-authored-by: David Montague <35119617+dmontagu@users.noreply.github.com>
* ♻️ Tweak type annotations and Pydantic version range (#9801)

* 📌 Re-enable GA Pydantic, for v2, require minimum 2.0.2 (#9814)

* 🔖 Release version 0.100.0-beta3

* 🔥 Remove duplicate type declaration from merge conflicts (#9832)

* 👷‍♂️ Run tests with Pydantic v2 GA (#9830)

👷 Run tests for Pydantic v2 GA

* 📝 Add notes to docs expecting Pydantic v2 and future updates (#9833)

* 📝 Update index with new extras

* 📝 Update release notes

---------

Co-authored-by: David Montague <35119617+dmontagu@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Pastukhov Nikita <diementros@yandex.ru>
2 years ago🔖 Release version 0.99.1 0.99.1
Sebastián Ramírez [Sun, 2 Jul 2023 16:00:39 +0000 (18:00 +0200)] 
🔖 Release version 0.99.1

2 years ago📝 Update release notes
Sebastián Ramírez [Sun, 2 Jul 2023 16:00:12 +0000 (18:00 +0200)] 
📝 Update release notes

2 years ago📝 Update release notes
github-actions [Sun, 2 Jul 2023 15:59:00 +0000 (15:59 +0000)] 
📝 Update release notes

2 years ago🐛 Fix JSON Schema accepting bools as valid JSON Schemas, e.g. `additionalProperties...
Sebastián Ramírez [Sun, 2 Jul 2023 15:58:23 +0000 (17:58 +0200)] 
🐛 Fix JSON Schema accepting bools as valid JSON Schemas, e.g. `additionalProperties: false` (#9781)

* 🐛 Fix JSON Schema accepting bools as valid JSON Schemas, e.g. additionalProperties: false

* ✅ Add test to ensure additionalProperties can be false

* ♻️ Tweak OpenAPI models to support Pydantic v1's JSON Schema for tuples

2 years ago📝 Update release notes
github-actions [Sat, 1 Jul 2023 16:44:12 +0000 (16:44 +0000)] 
📝 Update release notes

2 years ago📝 Update source examples to use new JSON Schema examples field (#9776)
Sebastián Ramírez [Sat, 1 Jul 2023 16:43:29 +0000 (18:43 +0200)] 
📝 Update source examples to use new JSON Schema examples field (#9776)

* 📝 Update source examples to use new JSON Schema examples field

* ✅ Update tests for JSON Schema examples

* 📝 Update highlights in JSON Schema examples

2 years ago🔖 Release version 0.99.0 0.99.0
Sebastián Ramírez [Fri, 30 Jun 2023 18:55:17 +0000 (20:55 +0200)] 
🔖 Release version 0.99.0

2 years ago📝 Update release notes
Sebastián Ramírez [Fri, 30 Jun 2023 18:54:25 +0000 (20:54 +0200)] 
📝 Update release notes

2 years ago📝 Update release notes
github-actions [Fri, 30 Jun 2023 18:25:53 +0000 (18:25 +0000)] 
📝 Update release notes

2 years ago✨ Add support for OpenAPI 3.1.0 (#9770)
Sebastián Ramírez [Fri, 30 Jun 2023 18:25:16 +0000 (20:25 +0200)] 
✨ Add support for OpenAPI 3.1.0 (#9770)

* ✨ Update OpenAPI models for JSON Schema 2020-12 and OpenAPI 3.1.0

* ✨ Add support for summary and webhooks

* ✨ Update JSON Schema for UploadFiles

* ⏪️ Revert making paths optional, to ensure always correctness

* ⏪️ Keep UploadFile as format: binary for compatibility with the rest of Pydantic bytes fields in v1

* ✨ Update version of OpenAPI generated to 3.1.0

* ✨ Update the version of Swagger UI

* 📝 Update docs about extending OpenAPI

* 📝 Update docs and links to refer to OpenAPI 3.1.0

* ✨ Update logic for handling webhooks

* ♻️ Update parameter functions and classes, deprecate example and make examples the main field

* ✅ Update tests for OpenAPI 3.1.0

* 📝 Update examples for OpenAPI metadata

* ✅ Add and update tests for OpenAPI metadata

* 📝 Add source example for webhooks

* 📝 Update docs for metadata

* 📝 Update docs for Schema extra

* 📝 Add docs for webhooks

* 🔧 Add webhooks docs to MkDocs

* ✅ Update tests for extending OpenAPI

* ✅ Add tests for webhooks

* ♻️ Refactor generation of OpenAPI and JSON Schema with params

* 📝 Update source examples for field examples

* ✅ Update tests for examples

* ➕ Make sure the minimum version of typing-extensions installed has deprecated() (already a dependency of Pydantic)

* ✏️ Fix typo in Webhooks example code

* 🔥 Remove commented out code of removed nullable field

* 🗑️ Add deprecation warnings for example argument

* ✅ Update tests to check for deprecation warnings

* ✅ Add test for webhooks with security schemes, for coverage

* 🍱 Update image for metadata, with new summary

* 🍱 Add docs image for Webhooks

* 📝 Update docs for webhooks, add docs UI image

2 years ago📝 Update release notes
github-actions [Fri, 30 Jun 2023 16:23:36 +0000 (16:23 +0000)] 
📝 Update release notes

2 years ago🔨 Enable linenums in MkDocs Material during local live development to simplify highli...
Sebastián Ramírez [Fri, 30 Jun 2023 16:23:02 +0000 (18:23 +0200)] 
🔨 Enable linenums in MkDocs Material during local live development to simplify highlighting code (#9769)

2 years ago📝 Update release notes
github-actions [Wed, 28 Jun 2023 16:39:44 +0000 (16:39 +0000)] 
📝 Update release notes

2 years ago✨ Add support for `deque` objects and children in `jsonable_encoder` (#9433)
Carson Crane [Wed, 28 Jun 2023 16:39:10 +0000 (09:39 -0700)] 
✨ Add support for `deque` objects and children in `jsonable_encoder` (#9433)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2 years ago📝 Update release notes
github-actions [Tue, 27 Jun 2023 01:14:01 +0000 (01:14 +0000)] 
📝 Update release notes

2 years ago⬆ Update httpx requirement from <0.24.0,>=0.23.0 to >=0.23.0,<0.25.0 (#9724)
dependabot[bot] [Tue, 27 Jun 2023 01:13:10 +0000 (03:13 +0200)] 
⬆ Update httpx requirement from <0.24.0,>=0.23.0 to >=0.23.0,<0.25.0 (#9724)

Updates the requirements on [httpx](https://github.com/encode/httpx) to permit the latest version.
- [Release notes](https://github.com/encode/httpx/releases)
- [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/httpx/compare/0.23.0...0.24.1)

---
updated-dependencies:
- dependency-name: httpx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago📝 Update release notes
github-actions [Tue, 27 Jun 2023 01:10:40 +0000 (01:10 +0000)] 
📝 Update release notes

2 years ago⬆ Bump mkdocs-material from 9.1.16 to 9.1.17 (#9746)
dependabot[bot] [Tue, 27 Jun 2023 01:08:43 +0000 (03:08 +0200)] 
⬆ Bump mkdocs-material from 9.1.16 to 9.1.17 (#9746)

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.1.16 to 9.1.17.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.1.16...9.1.17)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago📝 Update release notes
github-actions [Tue, 27 Jun 2023 01:07:03 +0000 (01:07 +0000)] 
📝 Update release notes

2 years ago📝 Update release notes
github-actions [Tue, 27 Jun 2023 01:06:48 +0000 (01:06 +0000)] 
📝 Update release notes

2 years ago🔥 Remove missing translation dummy pages, no longer necessary (#9751)
Sebastián Ramírez [Tue, 27 Jun 2023 01:06:27 +0000 (03:06 +0200)] 
🔥 Remove missing translation dummy pages, no longer necessary (#9751)

2 years ago⬆ [pre-commit.ci] pre-commit autoupdate (#9259)
pre-commit-ci[bot] [Tue, 27 Jun 2023 01:06:02 +0000 (03:06 +0200)] 
⬆ [pre-commit.ci] pre-commit autoupdate (#9259)

updates:
- [github.com/asottile/pyupgrade: v3.3.1 → v3.7.0](https://github.com/asottile/pyupgrade/compare/v3.3.1...v3.7.0)
- [github.com/charliermarsh/ruff-pre-commit: v0.0.272 → v0.0.275](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.272...v0.0.275)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2 years ago📝 Update release notes
github-actions [Tue, 27 Jun 2023 01:02:34 +0000 (01:02 +0000)] 
📝 Update release notes

2 years ago🌐 Add Persian translation for `docs/fa/docs/advanced/sub-applications.md` (#9692)
mojtaba [Tue, 27 Jun 2023 01:02:00 +0000 (04:32 +0330)] 
🌐 Add Persian translation for `docs/fa/docs/advanced/sub-applications.md` (#9692)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Amin Alaee <mohammadamin.alaee@gmail.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2 years ago📝 Update release notes
github-actions [Tue, 27 Jun 2023 01:00:55 +0000 (01:00 +0000)] 
📝 Update release notes

2 years ago🌐 Add Russian translation for `docs/ru/docs/tutorial/response-model.md` (#9675)
Sergei Glazkov [Tue, 27 Jun 2023 01:00:19 +0000 (04:00 +0300)] 
🌐 Add Russian translation for `docs/ru/docs/tutorial/response-model.md` (#9675)

Co-authored-by: s.glazkov <s.glazkov@polymatica.ru>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alexandr <alexandrhub@vk.com>
Co-authored-by: ivan-abc <36765187+ivan-abc@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2 years ago📝 Update release notes
github-actions [Mon, 26 Jun 2023 16:03:19 +0000 (16:03 +0000)] 
📝 Update release notes

2 years ago📝 Fix form for the FastAPI and friends newsletter (#9749)
Sebastián Ramírez [Mon, 26 Jun 2023 16:02:34 +0000 (18:02 +0200)] 
📝 Fix form for the FastAPI and friends newsletter (#9749)

2 years ago📝 Update release notes
github-actions [Mon, 26 Jun 2023 14:06:24 +0000 (14:06 +0000)] 
📝 Update release notes

2 years ago✨ Add Material for MkDocs Insiders features and cards (#9748)
Sebastián Ramírez [Mon, 26 Jun 2023 14:05:43 +0000 (16:05 +0200)] 
✨ Add Material for MkDocs Insiders features and cards (#9748)

* ➕ Add dependencies for MkDocs Insiders

* 🙈 Add Insider's .cache to .gitignore

* 🔧 Update MkDocs configs for Insiders

* 💄 Add custom Insiders card layout, while the custom logo is provided from upstream

* 🔨 Update docs.py script to dynamically enable insiders if it's installed

* 👷 Add cache for MkDocs Material Insiders' cards

* 🔊 Add a small log to the docs CLI

* 🔊 Tweak logs, only after exporting languages

* 🐛 Fix accessing non existing env var

* 🔧 Invalidate deps cache

* 🔧 Tweak cache IDs

* 👷 Update cache for installing insiders

* 🔊 Log insiders

* 💚 Invalidate cache

* 👷 Tweak cache keys

* 👷 Trigger CI and test cache

* 🔥 Remove cache comment

* ⚡️ Optimize cache usage for first runs of docs

* 👷 Tweak cache for MkDocs Material cards

* 💚 Trigger CI to test cache

2 years ago📝 Update release notes
github-actions [Sun, 25 Jun 2023 12:57:53 +0000 (12:57 +0000)] 
📝 Update release notes

2 years ago🔥 Remove languages without translations (#9743)
Sebastián Ramírez [Sun, 25 Jun 2023 12:57:19 +0000 (14:57 +0200)] 
🔥 Remove languages without translations (#9743)

* 🔥 Remove lang directories for empty translations

* 🔥 Remove untranslated langs from main config

2 years ago📝 Update release notes
github-actions [Sun, 25 Jun 2023 12:34:39 +0000 (12:34 +0000)] 
📝 Update release notes

2 years ago✨ Refactor docs for building scripts, use MkDocs hooks, simplify (remove) configs...
Sebastián Ramírez [Sun, 25 Jun 2023 12:33:58 +0000 (14:33 +0200)] 
✨ Refactor docs for building scripts, use MkDocs hooks, simplify (remove) configs for languages (#9742)

* ✨ Add MkDocs hooks to re-use all config from en, and auto-generate missing docs files form en

* 🔧 Update MkDocs config for es

* 🔧 Simplify configs for all languages

* ✨ Compute available languages from MkDocs Material for config overrides in hooks

* 🔧 Update config for MkDocs for en, to make paths compatible for other languages

* ♻️ Refactor scripts/docs.py to remove all custom logic that is now handled by the MkDocs hooks

* 🔧 Remove ta language as it's incomplete (no translations and causing errors)

* 🔥 Remove ta lang, no translations available

* 🔥 Remove dummy overrides directories, no longer needed

* ✨ Use the same missing-translation.md file contents for hooks

* ⏪️ Restore and refactor new-lang command

* 📝 Update docs for contributing with new simplified workflow for translations

* 🔊 Enable logs so that MkDocs can show its standard output on the docs.py script

2 years ago📝 Update release notes
github-actions [Sat, 24 Jun 2023 14:47:59 +0000 (14:47 +0000)] 
📝 Update release notes

2 years ago🔨 Add MkDocs hook that renames sections based on the first index file (#9737)
Sebastián Ramírez [Sat, 24 Jun 2023 14:47:15 +0000 (16:47 +0200)] 
🔨 Add MkDocs hook that renames sections based on the first index file (#9737)

2 years ago📝 Update release notes
github-actions [Sat, 24 Jun 2023 12:31:54 +0000 (12:31 +0000)] 
📝 Update release notes

2 years ago👷 Make cron jobs run only on main repo, not on forks, to avoid error notifications...
Sebastián Ramírez [Sat, 24 Jun 2023 12:30:57 +0000 (14:30 +0200)] 
👷 Make cron jobs run only on main repo, not on forks, to avoid error notifications from missing tokens (#9735)

2 years ago📝 Update release notes
github-actions [Sat, 24 Jun 2023 12:29:17 +0000 (12:29 +0000)] 
📝 Update release notes

2 years ago🔧 Update MkDocs for other languages (#9734)
Sebastián Ramírez [Sat, 24 Jun 2023 12:28:43 +0000 (14:28 +0200)] 
🔧 Update MkDocs for other languages (#9734)

2 years ago📝 Update release notes
github-actions [Sat, 24 Jun 2023 00:00:47 +0000 (00:00 +0000)] 
📝 Update release notes

2 years ago👷 Refactor Docs CI, run in multiple workers with a dynamic matrix to optimize speed...
Sebastián Ramírez [Sat, 24 Jun 2023 00:00:12 +0000 (02:00 +0200)] 
👷 Refactor Docs CI, run in multiple workers with a dynamic matrix to optimize speed (#9732)

2 years ago📝 Update release notes
github-actions [Fri, 23 Jun 2023 23:52:34 +0000 (23:52 +0000)] 
📝 Update release notes

2 years ago🔥 Remove old internal GitHub Action watch-previews that is no longer needed (#9730)
Sebastián Ramírez [Fri, 23 Jun 2023 23:51:56 +0000 (01:51 +0200)] 
🔥 Remove old internal GitHub Action watch-previews that is no longer needed (#9730)

2 years ago📝 Update release notes
github-actions [Fri, 23 Jun 2023 18:17:17 +0000 (18:17 +0000)] 
📝 Update release notes

2 years ago⬆️ Upgrade MkDocs and MkDocs Material (#9729)
Sebastián Ramírez [Fri, 23 Jun 2023 18:16:41 +0000 (20:16 +0200)] 
⬆️ Upgrade MkDocs and MkDocs Material (#9729)

2 years ago📝 Update release notes
github-actions [Fri, 23 Jun 2023 17:55:46 +0000 (17:55 +0000)] 
📝 Update release notes

2 years ago👷 Build and deploy docs only on docs changes (#9728)
Sebastián Ramírez [Fri, 23 Jun 2023 17:55:09 +0000 (19:55 +0200)] 
👷 Build and deploy docs only on docs changes (#9728)

2 years ago🔖 Release version 0.98.0 0.98.0
Sebastián Ramírez [Thu, 22 Jun 2023 17:58:22 +0000 (19:58 +0200)] 
🔖 Release version 0.98.0

2 years ago📝 Update release notes
Sebastián Ramírez [Thu, 22 Jun 2023 17:57:25 +0000 (19:57 +0200)] 
📝 Update release notes

2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 17:52:55 +0000 (17:52 +0000)] 
📝 Update release notes

2 years ago⬆ Bump ruff from 0.0.272 to 0.0.275 (#9721)
dependabot[bot] [Thu, 22 Jun 2023 17:52:20 +0000 (19:52 +0200)] 
⬆ Bump ruff from 0.0.272 to 0.0.275 (#9721)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 17:44:21 +0000 (17:44 +0000)] 
📝 Update release notes

2 years ago⬆ Update uvicorn[standard] requirement from <0.21.0,>=0.12.0 to >=0.12.0,<0.23.0...
dependabot[bot] [Thu, 22 Jun 2023 17:43:44 +0000 (19:43 +0200)] 
⬆ Update uvicorn[standard] requirement from <0.21.0,>=0.12.0 to >=0.12.0,<0.23.0 (#9463)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 17:43:29 +0000 (17:43 +0000)] 
📝 Update release notes

2 years ago⬆ Bump mypy from 1.3.0 to 1.4.0 (#9719)
dependabot[bot] [Thu, 22 Jun 2023 17:42:53 +0000 (19:42 +0200)] 
⬆ Bump mypy from 1.3.0 to 1.4.0 (#9719)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 17:26:46 +0000 (17:26 +0000)] 
📝 Update release notes

2 years ago⬆ Update pre-commit requirement from <3.0.0,>=2.17.0 to >=2.17.0,<4.0.0 (#9251)
dependabot[bot] [Thu, 22 Jun 2023 17:26:01 +0000 (19:26 +0200)] 
⬆ Update pre-commit requirement from <3.0.0,>=2.17.0 to >=2.17.0,<4.0.0 (#9251)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 17:12:59 +0000 (17:12 +0000)] 
📝 Update release notes

2 years ago⬆ Bump pypa/gh-action-pypi-publish from 1.8.5 to 1.8.6 (#9482)
dependabot[bot] [Thu, 22 Jun 2023 17:12:24 +0000 (19:12 +0200)] 
⬆ Bump pypa/gh-action-pypi-publish from 1.8.5 to 1.8.6 (#9482)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 17:07:05 +0000 (17:07 +0000)] 
📝 Update release notes

2 years ago📝 Update docs on Pydantic using ujson internally (#5804)
я котик пур-пур [Thu, 22 Jun 2023 17:06:25 +0000 (20:06 +0300)] 
📝 Update docs on Pydantic using ujson internally (#5804)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 17:04:50 +0000 (17:04 +0000)] 
📝 Update release notes

2 years ago✏ Rewording in `docs/en/docs/tutorial/debugging.md` (#9581)
ivan-abc [Thu, 22 Jun 2023 17:04:16 +0000 (23:04 +0600)] 
✏ Rewording in `docs/en/docs/tutorial/debugging.md` (#9581)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 17:02:08 +0000 (17:02 +0000)] 
📝 Update release notes

2 years ago✏️ Fix tooltips for light/dark theme toggler in docs (#9588)
Pankaj Kumar [Thu, 22 Jun 2023 17:01:28 +0000 (22:31 +0530)] 
✏️ Fix tooltips for light/dark theme toggler in docs (#9588)

2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 16:53:00 +0000 (16:53 +0000)] 
📝 Update release notes

2 years ago🌐 Add Russian translation for `docs/ru/docs/tutorial/metadata.md` (#9681)
TabarakoAkula [Thu, 22 Jun 2023 16:52:24 +0000 (19:52 +0300)] 
🌐 Add Russian translation for `docs/ru/docs/tutorial/metadata.md` (#9681)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: ivan-abc <36765187+ivan-abc@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 16:44:41 +0000 (16:44 +0000)] 
📝 Update release notes

2 years ago📝 Add german blog post (Domain-driven Design mit Python und FastAPI) (#9261)
Marcel Sander [Thu, 22 Jun 2023 16:44:05 +0000 (18:44 +0200)] 
📝 Add german blog post (Domain-driven Design mit Python und FastAPI) (#9261)

2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 16:41:05 +0000 (16:41 +0000)] 
📝 Update release notes

2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 16:40:50 +0000 (16:40 +0000)] 
📝 Update release notes

2 years ago✏️ Tweak wording in `docs/en/docs/tutorial/security/index.md` (#9561)
jyothish-mohan [Thu, 22 Jun 2023 16:40:32 +0000 (22:10 +0530)] 
✏️ Tweak wording in `docs/en/docs/tutorial/security/index.md` (#9561)

2 years ago🌐 Fix typo in Spanish translation for `docs/es/docs/tutorial/first-steps.md` (#9571)
Lili_DL [Thu, 22 Jun 2023 16:40:17 +0000 (13:40 -0300)] 
🌐 Fix typo in Spanish translation for `docs/es/docs/tutorial/first-steps.md` (#9571)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 16:35:04 +0000 (16:35 +0000)] 
📝 Update release notes

2 years ago🌐 Add Russian translation for `docs/tutorial/path-operation-configuration.md` (#9696)
TabarakoAkula [Thu, 22 Jun 2023 16:33:47 +0000 (19:33 +0300)] 
🌐 Add Russian translation for `docs/tutorial/path-operation-configuration.md` (#9696)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: ivan-abc <36765187+ivan-abc@users.noreply.github.com>
Co-authored-by: Alexandr <alexandrhub@vk.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 16:33:28 +0000 (16:33 +0000)] 
📝 Update release notes

2 years ago📝 Update `Annotated` notes in `docs/en/docs/tutorial/schema-extra-example.md` (#9620)
Alexandr [Thu, 22 Jun 2023 16:32:53 +0000 (19:32 +0300)] 
📝 Update `Annotated` notes in `docs/en/docs/tutorial/schema-extra-example.md` (#9620)

Update for docs/tutorial/schema-extra-example.md

When working on the translation, I noticed that this page is missing the annotated tips that can be found in the rest of the documentation (I checked, and it's the only page where they're missing).

2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 16:20:40 +0000 (16:20 +0000)] 
📝 Update release notes

2 years ago🌐 Add Chinese translation for `docs/zh/docs/advanced/security/index.md` (#9666)
lordqyxz [Thu, 22 Jun 2023 16:19:49 +0000 (00:19 +0800)] 
🌐 Add Chinese translation for `docs/zh/docs/advanced/security/index.md` (#9666)

Co-authored-by: shiyz <shiyz@finchina.com>
2 years ago📝 Update release notes
github-actions [Thu, 22 Jun 2023 16:18:54 +0000 (16:18 +0000)] 
📝 Update release notes

2 years ago🌐 Add Chinese translations for `docs/zh/docs/advanced/settings.md` (#9652)
雨过初晴 [Thu, 22 Jun 2023 16:18:04 +0000 (00:18 +0800)] 
🌐 Add Chinese translations for `docs/zh/docs/advanced/settings.md` (#9652)