File tree Expand file tree Collapse file tree 5 files changed +15
-11
lines changed Expand file tree Collapse file tree 5 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -400,8 +400,10 @@ fn generate_operation(
400
400
request_meta. push ( quote ! {
401
401
if <#arg_ty as #crate_name:: ApiExtractor >:: TYPES . contains( & #crate_name:: ApiExtractorType :: RequestObject ) {
402
402
request = <#arg_ty as #crate_name:: ApiExtractor >:: request_meta( ) ;
403
- if let Some ( ref mut request) = request. as_mut( ) {
404
- request. description = #param_desc;
403
+ if let :: std:: option:: Option :: Some ( ref mut request) = request. as_mut( ) {
404
+ if request. description. is_none( ) {
405
+ request. description = #param_desc;
406
+ }
405
407
}
406
408
}
407
409
} ) ;
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ #[ 5.1.4] 2024-11-25
8
+
9
+ - Assign the description to the request object in OpenAPI [ #886 ] ( https://github.com/poem-web/poem/pull/886 )
10
+ - Implemented nullable fields for openapi spec generation [ #865 ] ( https://github.com/poem-web/poem/pull/865 )
11
+ - refactor: change type name delimiters from ` <> ` ` () ` ` [] ` to ` _ ` [ #904 ] ( https://github.com/poem-web/poem/pull/904 )
12
+
7
13
#[ 5.1.3] 2024-11-20
8
14
9
15
- Update MSRV to ` 1.81.0 `
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " poem-openapi"
3
- version = " 5.1.3 "
3
+ version = " 5.1.4 "
4
4
authors.workspace = true
5
5
edition.workspace = true
6
6
license.workspace = true
Original file line number Diff line number Diff line change @@ -43,21 +43,15 @@ fn generics() {
43
43
delete_user : T2 ,
44
44
}
45
45
46
- assert_eq ! (
47
- <Obj <i32 , i64 >>:: name( ) ,
48
- "Obj_integer_int32_integer_int64"
49
- ) ;
46
+ assert_eq ! ( <Obj <i32 , i64 >>:: name( ) , "Obj_integer_int32_integer_int64" ) ;
50
47
let meta = get_meta :: < Obj < i32 , i64 > > ( ) ;
51
48
assert_eq ! ( meta. properties[ 0 ] . 1 . unwrap_inline( ) . ty, "integer" ) ;
52
49
assert_eq ! ( meta. properties[ 0 ] . 1 . unwrap_inline( ) . format, Some ( "int32" ) ) ;
53
50
54
51
assert_eq ! ( meta. properties[ 1 ] . 1 . unwrap_inline( ) . ty, "integer" ) ;
55
52
assert_eq ! ( meta. properties[ 1 ] . 1 . unwrap_inline( ) . format, Some ( "int64" ) ) ;
56
53
57
- assert_eq ! (
58
- <Obj <f32 , f64 >>:: name( ) ,
59
- "Obj_number_float_number_double"
60
- ) ;
54
+ assert_eq ! ( <Obj <f32 , f64 >>:: name( ) , "Obj_number_float_number_double" ) ;
61
55
let meta = get_meta :: < Obj < f32 , f64 > > ( ) ;
62
56
assert_eq ! ( meta. properties[ 0 ] . 1 . unwrap_inline( ) . ty, "number" ) ;
63
57
assert_eq ! ( meta. properties[ 0 ] . 1 . unwrap_inline( ) . format, Some ( "float" ) ) ;
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
# [ 3.1.5] 2024-11-25
8
8
9
9
- Bump ` opentelemetry ` to ` 0.27.0 `
10
+ - Add WebSocketStream::get_config method to get the WebSocket configuration. [ #900 ] ( https://github.com/poem-web/poem/pull/900 )
11
+ - feat: implement conversion from libcookie to poem cookie [ #898 ] ( https://github.com/poem-web/poem/pull/898 )
10
12
11
13
# [ 3.1.4] 2024-11-20
12
14
You can’t perform that action at this time.
0 commit comments