0.18.0
Hello
Please welcome the new Django Ninja version
it has lot of fixes and improvements
Most notable a HttpResponse typed argument by @SmileyChris
Now you can manage response behaviour (cookies, headers, streaming) flixible:
@api.post("/boop")
def boop(request, response: HttpResponse): # !
response.set_cookie("beep", "boop") # !
return True
All changes
- Provide a temporal HttpResponse typed argument to views by @SmileyChris in #336
- UploadedFile inherit from Django's UploadedFile by @OtherBarry in #400
- Allow path parameters to be specified at router level by @kaschnit in #369
- Added support for postgress specific fields to Model Schema #353
- Fixed openapi/pydantic versions compatibility #418
- pre-commit config by @SmileyChris in #364
- Access to test response attributes by @stephane in #402
- Small optimization and typing improvements by @SmileyChris in #367
- Minor typo in tutorial by @stephane in #387
- Specify mypy in CONTRIBUTING.md by @OtherBarry in #401
- ConfigError: ModelSchema classes requires a 'Config' subclass by @sebastian-philipp in #382
- Fix a typing issue by @HoJin9622 in #404
- Fix a few typos by @dy3l in #426
- Add Redoc support by @kxxoling in #427
- Fix typo in docs by @sho918 in #432
- Handle class instances in
signature.details.is_collection_type
by @flaeppe in #434 - Upgrade versions of pre-commit hooks by @flaeppe in #435
New Contributors
- @kaschnit made their first contribution in #369
- @stephane made their first contribution in #387
- @OtherBarry made their first contribution in #400
- @sebastian-philipp made their first contribution in #382
- @HoJin9622 made their first contribution in #404
- @dy3l made their first contribution in #426
- @kxxoling made their first contribution in #427
- @sho918 made their first contribution in #432
- @flaeppe made their first contribution in #434
Full Changelog: v0.17.0...v0.18.0