Releases: mr-fatalyst/fastopenapi
Releases · mr-fatalyst/fastopenapi
v0.7.0
Changed
- Replaced
json.dumps/json.loads
with pydantic_coreto_json/from_json
_serialize_response
: model list mapping now handled by Pydantic instead of manual recursion
Fixed
- Issue with parsing repeated query parameters in URL.
Removed
- The
use_aliases
fromBaseRouter
and reverted changes from 0.6.0.
v0.6.0
Added
- The
use_aliases
parameter was added to theBaseRouter
constructor. Default isTrue
. To preserve the previous behavior (without using aliases from Pydantic), setuse_aliases=False
.
Changed
- The
_serialize_response method
is now an instance method (was a@staticmethod
) — to supportuse_aliases
. - The
_get_model_schema
method was temporarily changed from a@classmethod
to a regular method — for consistent behavior withuse_aliases
.
Deprecated
use_aliases
is deprecated and will be removed in version 0.7.0.
v0.5.0
Added
AioHttpRouter
for integration with theAioHttp
framework- Class-level cache for model schemas
response_errors
for routerserror_handler
for standard error responses- Some python types as response_model (
int
,float
,bool
,str
)
v0.4.0
Added
ReDoc UI
and default URL (host:port/redoc
)TornadoRouter
for integration with theTornado
framework
Changed
- Revised and updated all tests.
Fixed
- Status code for error response fixed: 422 -> 500
Removed
- Removed the
add_docs_route
andadd_openapi_route
fromBaseRouter
.
v0.3.1
Fixed
- router imports
ModuleNotFoundError
v0.3.0
Added
QuartRouter
for integration with theQuart
framework.- Initial Documentation
Changed
- Import of routers. You can use
from fastopenapi.routers import YourRouter
Fixed
- Fixed retrieving parameters for BaseModel as arguments in GET routes.
v0.2.1
Fixed
- Fixed an issue in
_serialize_response
whereBaseModel
was converted to a dictionary incorrectly. - Resolved a bug causing
DataLoader
to crash when processing empty datasets. - Added tests.
- Added
CHANGELOG.md
.
v0.2.0
Added
- Implemented
resolve_endpoint_params
inBaseRouter
. - Added the
prefix
parameter to theinclude_router
method. - Implemented
status_code
support for responses.
Changed
- Refactored all routers.
Removed
- Removed the
register_routes
method fromStarlette
.
v0.1.0
Added
- Initial release of FastOpenAPI.
- Implemented core modules:
base
,falcon
,flask
,sanic
,starlette
. - Added basic documentation and tests.