Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [32.0.0] - 2026-04-27
- Bumped minimum pydantic version to 2.13
- Fixed Parameter import to use openapi-pydantic v3.0 consistently

## [31.0.2] - 2025-08-28
- Winter openapi order_by query parameter will be a single key with values separated by commas
-
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "winter"
version = "31.0.2"
version = "32.0.0"
homepage = "https://github.com/WinterFramework/winter"
description = "Web Framework with focus on python typing, dataclasses and modular design"
authors = ["Alexander Egorov <mofr@zond.org>"]
Expand Down Expand Up @@ -37,7 +37,7 @@ SQLAlchemy = ">=1.4, <2"
typing-extensions = "^4.8"
StrEnum = "^0.4.8"
openapi-pydantic = ">=0.5.0, <0.6"
pydantic = ">=1.10, <2"
pydantic = ">=2.13, <3"
openapi-spec-validator = ">=0.5.7, <1"
uritemplate = "==4.2.0" # Lib doesn't follow semantic versioning
httpx = ">=0.24.1, <0.28"
Expand All @@ -50,7 +50,7 @@ flake8-formatter-abspath = ">=1.0.1, <2"
pre-commit-hooks = ">=2.2.3, <3"
freezegun = ">=1.5.1, <2"
mock = ">=2.0.0, <3"
pytest = ">=6.2.5, <7"
pytest = ">=7.0, <9"
pytest-pythonpath = ">=0.7.1"
pytest-cov = "^6.0.0"
pytest-django = ">=3.2.0, <4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

from winter_openapi import PathParametersInspector
from winter_openapi import register_route_parameters_inspector
from winter_openapi.inspectors.route_parameters_inspector import _route_parameters_inspectors


def test_add_same_inspector_write_warning_log(caplog):
initial_count = len(_route_parameters_inspectors)
with caplog.at_level(logging.WARNING):
register_route_parameters_inspector(PathParametersInspector())
assert 'PathParametersInspector already registered' in caplog.text
# Clean up the duplicate inspector added by this test
del _route_parameters_inspectors[initial_count:]
2 changes: 1 addition & 1 deletion winter_openapi/inspectors/query_parameters_inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import TYPE_CHECKING
from typing import Tuple

from openapi_pydantic import Parameter
from openapi_pydantic.v3.v3_0 import Parameter

from winter.core import ComponentMethodArgument
from winter.web.query_parameters import QueryParameter
Expand Down
2 changes: 1 addition & 1 deletion winter_openapi/inspectors/route_parameters_inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import List
from typing import TYPE_CHECKING

from openapi_pydantic import Parameter
from openapi_pydantic.v3.v3_0 import Parameter

from winter.web.routing import Route

Expand Down
Loading