From c2a274f47f8dfa585eb88eed58a3f98213c6de6d Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 29 Nov 2025 13:47:12 -0500 Subject: [PATCH] Suppress FastAPI example/examples deprecation warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The warnings are cosmetic - we use 'example' instead of 'examples' because it works better for pre-filling Swagger UI input fields with default values. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 6df9ba8..ebc20d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,3 +42,9 @@ package = true dev = [ "pytest>=8.3.5", ] + +[tool.pytest.ini_options] +filterwarnings = [ + "ignore::DeprecationWarning:pydantic.*", + "ignore:.*example.* has been deprecated.*:DeprecationWarning", +]