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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ 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).

## [31.0.2] - 2025-08-28
- Winter openapi order_by query parameter will be a single key with values separated by commas
-
## [31.0.1] - 2025-08-28
- Winter openapi now supports enum for order_by query parameter

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "winter"
version = "31.0.1"
version = "31.0.2"
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
2 changes: 2 additions & 0 deletions tests/winter_openapi/test_page_position_argument_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def method(self, arg1: PagePosition): # pragma: no cover
"in": "query",
"name": "order_by",
"required": False,
"style": "form",
"explode": False,
"schema": {
"items": {
"type": "string",
Expand Down
2 changes: 2 additions & 0 deletions winter_openapi/inspectors/page_position_argument_inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def inspect_parameters(self, route: 'Route', schema_registry: 'SchemaRegistry')
description=f'Comma separated order by fields.',
required=False,
param_in="query",
style="form",
explode=False,
param_schema=Schema(
type=DataTypes.ARRAY,
default=default_sort,
Expand Down