File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
stac_fastapi/api/stac_fastapi/api Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ Unreleased]
4
4
5
+ ### Fixed
6
+
7
+ - fixed typing of base_model and mixins parameters ([ #852 ] ( https://github.com/stac-utils/stac-fastapi/pull/852 ) )
8
+
5
9
## [ 6.0.0] - 2025-06-19
6
10
7
11
### Changed
Original file line number Diff line number Diff line change 29
29
30
30
def create_request_model (
31
31
model_name = "SearchGetRequest" ,
32
- base_model : Union [Type [BaseModel ], APIRequest ] = BaseSearchGetRequest ,
32
+ base_model : Union [Type [BaseModel ], Type [ APIRequest ] ] = BaseSearchGetRequest ,
33
33
extensions : Optional [List [ApiExtension ]] = None ,
34
- mixins : Optional [Union [List [BaseModel ], List [APIRequest ]]] = None ,
34
+ mixins : Optional [Union [List [Type [ BaseModel ]] , List [Type [ APIRequest ] ]]] = None ,
35
35
request_type : Optional [str ] = "GET" ,
36
36
) -> Union [Type [BaseModel ], APIRequest ]:
37
37
"""Create a pydantic model for validating request bodies."""
You can’t perform that action at this time.
0 commit comments