Skip to content

Commit 6dada0e

Browse files
committed
release v4.2.1
1 parent f8e96bb commit 6dada0e

File tree

2 files changed

+45
-28
lines changed

2 files changed

+45
-28
lines changed

CHANGELOG.md

Lines changed: 44 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
## v4.2.1 2025-07-19
2+
3+
- Fixes issue where register_api isn't idempotent by @zakmatik in #230
4+
- Make validate_request pass on existing kwargs but remove those part of path by @puittenbroek in #227
5+
16
## v4.2.0 2025-06-21
27

38
- fix(models): enable 'populate_by_name' to alias fields correctly by @omikader in #221
49
- operation_id_callback with blueprint name and func name by @luolingchun in #224
510
- Delay throwing validation error by @luolingchun in #223
611

7-
812
## v4.1.0 2025-02-08
913

1014
- Support for Python 3.13 by @luolingchun in #200
@@ -18,18 +22,16 @@
1822

1923
- Add PrefixItems to Schema Model for use with Tuple types by @JesseDeLoore in #197
2024

21-
2225
## v4.0.2 2024-11-10
2326

2427
- Reuse schema["title"] if it's defined by @ddorian in #186
2528
- Simple webhook schema by @ddorian in #191
2629
- Fix missing Field.default when it's value is None in openapi spec by @ddorian in #189
2730
- ServerVariable.enum should be optional by @luolingchun in #194
2831

29-
3032
## v4.0.1 2024-10-05
3133

32-
- Fix alias in query and form by @luolingchun in #184
34+
- Fix alias in query and form by @luolingchun in #184
3335

3436
## v4.0.0 2024-09-29
3537

@@ -116,10 +118,10 @@
116118
- [#106](https://github.com/luolingchun/flask-openapi3/pull/106) Bugfix for parameter object. Thanks, @ota42y.
117119
- [#107](https://github.com/luolingchun/flask-openapi3/pull/107) Bugfix for generics class. Thanks, @ota42y.
118120
- [#114](https://github.com/luolingchun/flask-openapi3/pull/114) Support Flask 3.0.
119-
- [#118](https://github.com/luolingchun/flask-openapi3/discussions/118) Fix missed components schemas in ValidationErrorModel. Thanks, @SeFeX.
121+
- [#118](https://github.com/luolingchun/flask-openapi3/discussions/118) Fix missed components schemas in
122+
ValidationErrorModel. Thanks, @SeFeX.
120123
- [#122](https://github.com/luolingchun/flask-openapi3/issues/122) Skip 422 response non parameters. Thanks, @Danielsn1.
121124

122-
123125
## v3.0.0rc2 2023-10-03
124126

125127
- [#105](https://github.com/luolingchun/flask-openapi3/pull/105) Supports valid properties only. Thanks, @ota42y.
@@ -141,7 +143,8 @@
141143

142144
## v2.5.4 2023-10-22
143145

144-
- [#118](https://github.com/luolingchun/flask-openapi3/discussions/118) Fix missed components schemas in ValidationErrorModel. Thanks, @SeFeX.
146+
- [#118](https://github.com/luolingchun/flask-openapi3/discussions/118) Fix missed components schemas in
147+
ValidationErrorModel. Thanks, @SeFeX.
145148
- [#122](https://github.com/luolingchun/flask-openapi3/issues/122) Skip 422 response non parameters. Thanks, @Danielsn1.
146149

147150
## v2.5.3 2023-10-03
@@ -156,31 +159,37 @@
156159

157160
## v2.5.1 2023-08-07
158161

159-
- [#95](https://github.com/luolingchun/flask-openapi3/pull/95) Added ability to deserialize complex form parameter objects. Thanks, @BlackGad.
162+
- [#95](https://github.com/luolingchun/flask-openapi3/pull/95) Added ability to deserialize complex form parameter
163+
objects. Thanks, @BlackGad.
160164

161165
## v2.5.0 2023-08-02
162166

163-
- [#79](https://github.com/luolingchun/flask-openapi3/discussions/79) Support `by_alias` in Model Config. Thanks, @candleindark.
167+
- [#79](https://github.com/luolingchun/flask-openapi3/discussions/79) Support `by_alias` in Model Config. Thanks,
168+
@candleindark.
164169
- [#82](https://github.com/luolingchun/flask-openapi3/issues/82) Fix parameter in url_prefix. Thanks, @riedgar-ms.
165-
- [#83](https://github.com/luolingchun/flask-openapi3/pull/83) Be able to change 422 validation errors to other http response status. Thanks, @CostcoFanboy.
166-
- [#86](https://github.com/luolingchun/flask-openapi3/issues/86) Responses key supports both string, int, and HTTPStatus. Thanks, @CostcoFanboy.
170+
- [#83](https://github.com/luolingchun/flask-openapi3/pull/83) Be able to change 422 validation errors to other http
171+
response status. Thanks, @CostcoFanboy.
172+
- [#86](https://github.com/luolingchun/flask-openapi3/issues/86) Responses key supports both string, int, and
173+
HTTPStatus. Thanks, @CostcoFanboy.
167174

168175
## v2.4.0 2023-06-04
169176

170177
- [#72](https://github.com/luolingchun/flask-openapi3/pull/72) security_schemes(SecurityScheme) supports a json format.
171178
- [#68](https://github.com/luolingchun/flask-openapi3/pull/68) feat: Add operation_id_callback. Thanks, @BoyanYK.
172-
- [#64](https://github.com/luolingchun/flask-openapi3/pull/64) Explains the usage of flask openapi command more clearly. Thanks, @candleindark.
179+
- [#64](https://github.com/luolingchun/flask-openapi3/pull/64) Explains the usage of flask openapi command more clearly.
180+
Thanks, @candleindark.
173181
- [#75](https://github.com/luolingchun/flask-openapi3/pull/75) Init view_class and pass view_kwargs. Thanks, @stufisher.
174-
- [#70](https://github.com/luolingchun/flask-openapi3/issues/70) Support for Specification Extensions in OpenAPI Object and Operation Object. Thanks, @simonblund.
182+
- [#70](https://github.com/luolingchun/flask-openapi3/issues/70) Support for Specification Extensions in OpenAPI Object
183+
and Operation Object. Thanks, @simonblund.
175184
- [#73](https://github.com/luolingchun/flask-openapi3/issues/73) BaseModel Config support openapi_extra.
176185
- Merge `extra_responses` to `responses` and deprecate `extra_responses`.
177186

178187
**DeprecationWarning:**
179188

180-
- Add DeprecationWarning to `APIKey`, `HTTPBase`, `OAuth2`, `OpenIdConnect`, `HTTPBearer` that will be deprecated in v3.0.
189+
- Add DeprecationWarning to `APIKey`, `HTTPBase`, `OAuth2`, `OpenIdConnect`, `HTTPBearer` that will be deprecated in
190+
v3.0.
181191
- Add DeprecationWarning to `extra_form`, `extra_body` and `extra_responses` that will be deprecated in v3.0.
182192

183-
184193
## v2.3.2 2023-04-03
185194

186195
- [#61](https://github.com/luolingchun/flask-openapi3/issues/61) Fix headers with pydantic alias
@@ -214,9 +223,11 @@
214223

215224
## v2.1.1 2022-10-12
216225

217-
- [#41](https://github.com/luolingchun/flask-openapi3/issues/41) Set the `requestBody required` default value to True. Thanks, @Colin-b
226+
- [#41](https://github.com/luolingchun/flask-openapi3/issues/41) Set the `requestBody required` default value to True.
227+
Thanks, @Colin-b
218228
- Fix multi decorator for api
219-
- [#42](https://github.com/luolingchun/flask-openapi3/issues/42) Fix required header is not found when `_` in header field. Thanks, @elirud
229+
- [#42](https://github.com/luolingchun/flask-openapi3/issues/42) Fix required header is not found when `_` in header
230+
field. Thanks, @elirud
220231

221232
## v2.1.0 2022-09-04
222233

@@ -225,27 +236,29 @@
225236
- Add external_docs for operation
226237
- Add servers for operation
227238
- Support to parse extra field in parameters
228-
- [#35](https://github.com/luolingchun/flask-openapi3/issues/35) Fixed extra_responses can now be used to set every field in Response. Thanks, @Colin-b
239+
- [#35](https://github.com/luolingchun/flask-openapi3/issues/35) Fixed extra_responses can now be used to set every
240+
field in Response. Thanks, @Colin-b
229241
- Upgrade Swagger UI 4.14.0
230242
- Upgrade Redoc UI 2.0.0-rc.76
231243
- Upgrade RapiDoc UI 9.3.3
232244

233-
234245
### Breaking Changes
235246

236247
- [#39](https://github.com/luolingchun/flask-openapi3/issues/39) Remove configuration FLASK_OPENAPI_VALIDATE_RESPONSE
237248

238-
239249
## v2.0.1 2022-08-07
240250

241251
- [#32](https://github.com/luolingchun/flask-openapi3/issues/32) Fix: parse_rule is deprecated in werkzeug>=2.2.0.
242252

243253
## v2.0.0 2022-06-26
244254

245-
- [#26](https://github.com/luolingchun/flask-openapi3/issues/26) Fixed: Body throws exception when receiving str instead of dict. Thanks, @nor3th
255+
- [#26](https://github.com/luolingchun/flask-openapi3/issues/26) Fixed: Body throws exception when receiving str instead
256+
of dict. Thanks, @nor3th
246257
- [#23](https://github.com/luolingchun/flask-openapi3/pull/23) Fixed externalDocs support. Thanks, @dvaerum
247-
- [#28](https://github.com/luolingchun/flask-openapi3/pull/28) Fixed to enable `__root__` property when validation responses. Thanks, @dvaerum
248-
- [#17](https://github.com/luolingchun/flask-openapi3/issues/17) Support for Nested APIBlueprint enhancement. Thanks, @dvaerum
258+
- [#28](https://github.com/luolingchun/flask-openapi3/pull/28) Fixed to enable `__root__` property when validation
259+
responses. Thanks, @dvaerum
260+
- [#17](https://github.com/luolingchun/flask-openapi3/issues/17) Support for Nested APIBlueprint enhancement. Thanks,
261+
@dvaerum
249262
- [#29](https://github.com/luolingchun/flask-openapi3/pull/29) Support disable warnings. Thanks, @dvaerum
250263
- Support for empty response body. Thanks, @dvaerum
251264
- Support reload authorizations in Swagger UI
@@ -276,8 +289,10 @@
276289
## v1.1.0 2022-03-13
277290

278291
- [#13](https://github.com/luolingchun/flask-openapi3/issues/13) drop support for flask 1.0.x. Thanks, @danmur
279-
- [#15](https://github.com/luolingchun/flask-openapi3/pull/15) Fix to enable BaseModel with `__root__` property. Thanks, @tarcisiojr
280-
- [#14](https://github.com/luolingchun/flask-openapi3/pull/14) Custom parameters: doc_prefix, api_doc_url, swagger_url, redoc_url, rapidoc_url. Thanks, @barryrobison
292+
- [#15](https://github.com/luolingchun/flask-openapi3/pull/15) Fix to enable BaseModel with `__root__` property. Thanks,
293+
@tarcisiojr
294+
- [#14](https://github.com/luolingchun/flask-openapi3/pull/14) Custom parameters: doc_prefix, api_doc_url, swagger_url,
295+
redoc_url, rapidoc_url. Thanks, @barryrobison
281296
- Upgrade swagger UI v4.6.2
282297
- Upgrade Redoc v2.0.0-rc.63
283298
- Upgrade RapiDoc v9.2.0
@@ -290,7 +305,8 @@
290305

291306
- [#10](https://github.com/luolingchun/flask-openapi3/issues/10) Fix: header's title case. Thanks, @rrr34
292307
- [#9](https://github.com/luolingchun/flask-openapi3/issues/9) Support for extra responses. Thanks, @blynn99
293-
- [#12](https://github.com/luolingchun/flask-openapi3/pull/12) Support for path operation field deprecated. Thanks, @blynn99
308+
- [#12](https://github.com/luolingchun/flask-openapi3/pull/12) Support for path operation field deprecated. Thanks,
309+
@blynn99
294310
- Add keyword parameters `summary` and `description`
295311
- Add servers for OpenAPI
296312
- Upgrade swagger UI v4.1.3
@@ -331,7 +347,8 @@
331347

332348
- OpenAPI add responses and APIBlueprint add abp_responses
333349
- fix: validate response error when responses is empty dict
334-
- [#3](https://github.com/luolingchun/flask-openapi3/issues/3) endpoint and APIBlueprint add `doc_ui`. Thanks, @DerManoMann
350+
- [#3](https://github.com/luolingchun/flask-openapi3/issues/3) endpoint and APIBlueprint add `doc_ui`. Thanks,
351+
@DerManoMann
335352
- [#4](https://github.com/luolingchun/flask-openapi3/issues/4) fix: response description. Thanks, @DerManoMann
336353
- [#5](https://github.com/luolingchun/flask-openapi3/issues/5) add custom parameter `oauth_config`. Thanks, @DerManoMann
337354
- [#6](https://github.com/luolingchun/flask-openapi3/issues/6) support validation Flask Response. Thanks, @DerManoMann

flask_openapi3/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# @Author : llc
33
# @Time : 2022/4/30 9:20
44

5-
__version__ = "4.2.0"
5+
__version__ = "4.2.1"

0 commit comments

Comments
 (0)