]>
git.ipfire.org Git - thirdparty/fastapi/fastapi.git/log
Sebastián Ramírez [Fri, 10 Jul 2020 09:18:18 +0000 (11:18 +0200)]
📝 Update release notes
Katherine Bancroft [Fri, 10 Jul 2020 09:16:46 +0000 (02:16 -0700)]
📝 Add note in docs on order in Pydantic Unions (#1591)
* Add note on order in Unions
* Add an example of Union order
Co-authored-by: kbanc <katherine.bancoft@gmail.com>
Sebastián Ramírez [Fri, 10 Jul 2020 09:09:43 +0000 (11:09 +0200)]
📝 Update release notes
Sebastián Ramírez [Fri, 10 Jul 2020 09:08:19 +0000 (11:08 +0200)]
✔ Improve support for tests in editor (#1699)
* ♻️ Remove required extra steps to test in editor
* 🎨 Format lint script
* 📝 Remove obsolete extra steps required to test in editor from docs
* 🐛 Fix coverage
Sebastián Ramírez [Thu, 9 Jul 2020 22:16:35 +0000 (00:16 +0200)]
📝 Update release notes
Sebastián Ramírez [Thu, 9 Jul 2020 22:15:39 +0000 (00:15 +0200)]
📌 Pin dependencies (#1697)
* 📌 Pin dependencies
* 🐛 Fix config in pyproject.toml
Sebastián Ramírez [Thu, 9 Jul 2020 18:09:38 +0000 (20:09 +0200)]
📝 Update release notes
Brian Mboya [Thu, 9 Jul 2020 18:06:12 +0000 (21:06 +0300)]
⬆ Upgrade isort to version 5.x.x (#1670)
* Update isort script to match changes in the new release, isort v5.0.2
* Downgrade isort to version v4.3.21
* Add an alternative flag to --recursive in isort v5.0.2
* Add isort config file
* 🚚 Import from docs_src for tests
* 🎨 Format dependencies.utils
* 🎨 Remove isort combine_as_imports, keep black profile
* 🔧 Update isort config, use pyproject.toml, Black profile
* 🔧 Update format scripts to use explicit directories to format
otherwise it would try to format venv env directories, I have several with different Python versions
* 🎨 Format NoSQL tutorial after re-sorting imports
* 🎨 Fix format for __init__.py
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Sun, 28 Jun 2020 21:48:30 +0000 (23:48 +0200)]
🔖 Release version 0.58.1
Sebastián Ramírez [Sun, 28 Jun 2020 21:43:30 +0000 (23:43 +0200)]
📝 Update release notes
Sebastián Ramírez [Sun, 28 Jun 2020 21:42:32 +0000 (23:42 +0200)]
🎨 Add format, finishing period
Eyitayo Ogunbiyi [Sun, 28 Jun 2020 21:40:45 +0000 (22:40 +0100)]
📝 Add link to all valid pydantic data types (#1612)
Sebastián Ramírez [Sun, 28 Jun 2020 21:38:49 +0000 (23:38 +0200)]
📝 Update release notes
Dmytro Petruk [Sun, 28 Jun 2020 21:37:42 +0000 (22:37 +0100)]
🐛 Fix link in warning logs (#1611)
Co-authored-by: Dmytro Petruk <petruk@ebu.ch>
Sebastián Ramírez [Sun, 28 Jun 2020 21:35:21 +0000 (23:35 +0200)]
📝 Update release notes
molto [Sun, 28 Jun 2020 21:34:28 +0000 (05:34 +0800)]
📝 Fix bad link in docs (#1603)
Co-authored-by: lookyun <lookyun0504@outlook.com>
Sebastián Ramírez [Sun, 28 Jun 2020 21:30:22 +0000 (23:30 +0200)]
📝 Update release notes
Brian Mboya [Sun, 28 Jun 2020 21:28:35 +0000 (00:28 +0300)]
🙈 Add vim temporary files to gitignore (#1590)
Co-authored-by: asheux <brianashiundu000@gmail.com>
Sebastián Ramírez [Sun, 28 Jun 2020 21:27:40 +0000 (23:27 +0200)]
📝 Update release notes
Andreas Schlapbach [Sun, 28 Jun 2020 21:26:35 +0000 (23:26 +0200)]
✏ Fix typo in sub-applications (#1578)
Sebastián Ramírez [Sun, 28 Jun 2020 18:21:38 +0000 (20:21 +0200)]
📝 Update release notes
Sebastián Ramírez [Sun, 28 Jun 2020 18:13:30 +0000 (20:13 +0200)]
📝 Use Optional in docs (#1644)
* Updated .py files with Optional tag (up to body_nested_models)
* Update optionals
* docs_src/ all updates, few I was unsure of
* Updated markdown files with Optional param
* es: Add Optional typing to index.md
* Last of markdown files updated with Optional param
* Update highlight lines
* it: Add Optional typings
* README.md: Update with Optional typings
* Update more highlight increments
* Update highlights
* schema-extra-example.md: Update highlights
* updating highlighting on website to reflect .py changes
* Update highlighting for query-params & response-directly
* Address PR comments
* Get rid of unnecessary comment
* ⏪ Revert Optional in Chinese docs as it probably also requires changes in text
* 🎨 Apply format
* ⏪ Revert modified example
* ♻️ Simplify example in docs
* 📝 Update OpenAPI callback example to use Optional
* ✨ Add Optional types to tests
* 📝 Update docs about query params, default to using Optional
* 🎨 Update code examples line highlighting
* 📝 Update nested models docs to use "type parameters" instead of "subtypes"
* 📝 Add notes about FastAPI usage of None
including:
= None
and
= Query(None)
and clarify relationship with Optional[str]
* 📝 Add note about response_model_by_alias
* ♻️ Simplify query param list example
* 🔥 Remove test for removed example
* ✅ Update test for updated example
Co-authored-by: Christopher Nguyen <chrisngyn99@gmail.com>
Co-authored-by: yk396 <yk396@cornell.edu>
Co-authored-by: Kai Chen <kaichen120@gmail.com>
Sebastián Ramírez [Sun, 28 Jun 2020 11:59:20 +0000 (13:59 +0200)]
📝 Update release notes
Sebastián Ramírez [Sun, 28 Jun 2020 11:58:21 +0000 (13:58 +0200)]
✅ Update response_model_by_alias (#1642)
* Make openapi models honor response_model_by_alias
* Add test for response_model_by_alias working with openapi models
* ⏪ Revert changes
* ✅ Update and extend tests for response_model_by_alias
* ⏪ Revert test name change
* 📌 Pin Pytest and Pytest-Cov
Co-authored-by: Martin Zaťko <martin.zatko@kiwi.com>
Sebastián Ramírez [Sat, 27 Jun 2020 18:32:22 +0000 (20:32 +0200)]
📝 Update release notes
Sebastián Ramírez [Sat, 27 Jun 2020 18:25:38 +0000 (20:25 +0200)]
📝 Update release notes
Sebastián Ramírez [Sat, 27 Jun 2020 18:23:20 +0000 (20:23 +0200)]
📝 Update release notes
Xie Wei [Sat, 27 Jun 2020 18:29:41 +0000 (02:29 +0800)]
🌐 Add chinese translation for body-fields.md (#1569)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Xie Wei [Sat, 27 Jun 2020 18:24:10 +0000 (02:24 +0800)]
🌐 Update Chinese translation for index.md (#1564)
* keep up-to-date with main version
* fix 2 ignored quotes
Xie Wei [Sat, 27 Jun 2020 18:18:10 +0000 (02:18 +0800)]
🌐 Add Chinese translation for body-multiple-params.md (#1532)
* add chinese translation for body-multiple-params.md
* improve translations
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Sat, 27 Jun 2020 18:13:07 +0000 (20:13 +0200)]
📝 Update release notes
Xie Wei [Sat, 27 Jun 2020 18:10:32 +0000 (02:10 +0800)]
✨ Add Chinese translation for path-params-numeric-validations.md (#1506)
* add chinese translation for path-params-numeric-validations.md
* improve translations
Sebastián Ramírez [Sat, 27 Jun 2020 18:00:03 +0000 (20:00 +0200)]
📝 Update release notes
Sebastián Ramírez [Sat, 27 Jun 2020 17:59:10 +0000 (19:59 +0200)]
✨ Add GitHub action to label approved PRs (#1638)
Sebastián Ramírez [Mon, 15 Jun 2020 11:18:36 +0000 (13:18 +0200)]
🔖 Release version 0.58.0
Sebastián Ramírez [Mon, 15 Jun 2020 11:13:53 +0000 (13:13 +0200)]
📝 Update release notes
Sebastián Ramírez [Mon, 15 Jun 2020 11:12:12 +0000 (13:12 +0200)]
✨ Deep merge OpenAPI responses (#1577)
* override successful response
* ✨ Add deep_dict_udpate
* ✨ Merge additional responses with generated responses
* 🍱 Update docs screenshot
Co-authored-by: rkbeatss <rkaus053@uottawa.ca>
Sebastián Ramírez [Mon, 15 Jun 2020 10:42:48 +0000 (12:42 +0200)]
📝 Update release notes
Andrew [Sun, 14 Jun 2020 16:25:10 +0000 (12:25 -0400)]
📝 Mention in docs that subapps don't fire events (#1554)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Sun, 14 Jun 2020 16:12:51 +0000 (18:12 +0200)]
📝 Update release notes
Andrew [Sun, 14 Jun 2020 16:07:39 +0000 (12:07 -0400)]
🐛 Fix body validation error response, remove variable name when it is not embedded (#1553)
Sebastián Ramírez [Sun, 14 Jun 2020 15:56:12 +0000 (17:56 +0200)]
📝 Update release notes
Sebastián Ramírez [Sun, 14 Jun 2020 13:48:20 +0000 (15:48 +0200)]
📝 Update release notes
Andrew [Sun, 14 Jun 2020 15:54:46 +0000 (11:54 -0400)]
🐛 Fix testing security scopes when using dependency overrides (#1549)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Vinny Do [Sun, 14 Jun 2020 13:46:49 +0000 (23:46 +1000)]
🐛 Fix JSON Schema "not" keyword (#1548)
Sebastián Ramírez [Sun, 14 Jun 2020 13:40:18 +0000 (15:40 +0200)]
📝 Update release notes
mikaello [Sun, 14 Jun 2020 13:38:29 +0000 (15:38 +0200)]
✨ Add support for OpenAPI servers metadata (#1547)
* feat: add servers option for OpenAPI
Closes #872
* ✨ Use dicts for OpenAPI servers
* ♻️ Update OpenAPI Server model to support relative URLs
* ✅ Add tests for OpenAPI servers
* ♻️ Re-order parameter location of servers for OpenAPI
* 🎨 Format code
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Sat, 13 Jun 2020 21:13:25 +0000 (23:13 +0200)]
🔖 Release version 0.57.0
Sebastián Ramírez [Sat, 13 Jun 2020 21:08:20 +0000 (23:08 +0200)]
📝 Update release notes
JAYATI SHRIVASTAVA [Sat, 13 Jun 2020 21:07:11 +0000 (02:37 +0530)]
🔥 Remove broken external link (#1565)
Sebastián Ramírez [Sat, 13 Jun 2020 20:55:30 +0000 (22:55 +0200)]
📝 Update release notes
Sebastián Ramírez [Sat, 13 Jun 2020 17:41:07 +0000 (19:41 +0200)]
📝 Update release notes
Chih Sean Hsu [Sat, 13 Jun 2020 20:51:34 +0000 (04:51 +0800)]
📝 Update tutorial for WebSockets with dependencies (#1540)
* fix websockets/tutorial002.py
* fix tutorial002 in ws to correspond with test case
* reformat websocket tutorial002
* fix websocket tutorial002 coverage
* 📝 Update example for WebSockets with Depends
* ✅ Update and refactor tests for WebSockets with dependencies
* 👷 Trigger Travis, as it's not reporting to Codecov
* ✅ Update WebSocket tests to raise coverage
Co-authored-by: Chih Sean Hsu <Sean@Sean-Mac.local>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
retnikt [Sat, 13 Jun 2020 17:40:10 +0000 (18:40 +0100)]
✨ Add support for Python's http.HTTPStatus in status_code (#1534)
* Normalise IntEnums to ints for route status codes
Closes #1349
* add tests for status code enum support
* add docs for status code enum support
* add endpoint test for enum status code
* 📝 Update note about http.HTTPStatus
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Sat, 13 Jun 2020 17:22:08 +0000 (19:22 +0200)]
📝 Update release notes
Sebastián Ramírez [Sat, 13 Jun 2020 17:15:02 +0000 (19:15 +0200)]
📝 Update release notes
Patrick Wang [Sat, 13 Jun 2020 17:20:11 +0000 (13:20 -0400)]
✨ When using Pydantic models with __root__ use the internal value in jsonable_encoder (#1524)
Yankee [Sat, 13 Jun 2020 17:14:23 +0000 (22:59 +0545)]
📝 Updated docs for path-params (#1521)
* Added response example; URL for quick access; typo fixes
* Added line breaks for readability
* Fix typo on redoc url
* 📝 Update format, links, rewordings
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Sat, 13 Jun 2020 16:54:47 +0000 (18:54 +0200)]
📝 Update release notes
Yankee [Sat, 13 Jun 2020 16:53:31 +0000 (22:38 +0545)]
📝 Update docs for first-steps, links, rewordings (#1518)
* :pencil2: Typo/readability fixes for first-steps documentation
* 📝 Update link and small rewordings
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Sat, 13 Jun 2020 16:18:27 +0000 (18:18 +0200)]
📝 Update release notes
TiewKH [Sat, 13 Jun 2020 16:16:34 +0000 (00:16 +0800)]
✨ Enable showCommonExtensions and showExtensions in SwaggerUI (#1466)
* Set showExtensions and showCommonExtensions to true
* Clean up comma
Co-authored-by: tiewkeehui <keehuitiew@airasia.com>
Sebastián Ramírez [Sat, 13 Jun 2020 16:13:06 +0000 (18:13 +0200)]
📝 Update release notes
Richard Hoekstra [Sat, 13 Jun 2020 16:08:08 +0000 (09:08 -0700)]
✨ Export OAuth2PasswordRequestFormStrict from security (#1462)
* Update __init__.py
Fixes an import error:
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestFormStrict
ImportError: cannot import name 'OAuth2PasswordRequestFormStrict'
* Simplify import of OAuth2PasswordRequestFormStrict
* Simplify import of OAuth2PasswordRequestFormStrict
Sebastián Ramírez [Sat, 13 Jun 2020 16:05:22 +0000 (18:05 +0200)]
📝 Update release notes
Roman Tezikov [Sat, 13 Jun 2020 16:02:45 +0000 (19:02 +0300)]
📝 Add docs for `default_response_class` (#1455)
* :heavy_plus_sign: Add docs to default_response_class
* :white_check_mark: create a tip
* ✅ fixing the tip
* :ambulance: grammar
* 📝 Update docs for default response class
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Sat, 13 Jun 2020 13:26:42 +0000 (15:26 +0200)]
📝 Update release notes
William Hayes [Sat, 13 Jun 2020 13:23:29 +0000 (09:23 -0400)]
📝 Document additional parameters for response_model (#1427)
* Documented additional parameters
These are included in a recent PR (https://github.com/tiangolo/fastapi/pull/1166) but not in the docs yet.
* response_model_exclude_none
* response_model_exclude_defaults
* 📝 Update note about response_model_exclude_defaults and response_model_exclude_none
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Sat, 13 Jun 2020 13:08:10 +0000 (15:08 +0200)]
📝 Update release notes
Koudai Aono [Sat, 13 Jun 2020 13:05:59 +0000 (22:05 +0900)]
📝 Add PyCharm Pydantic plugin to docs (#1420)
* add pydantic pycharm plugin in document
* 📝 Update PyCharm Pydantic plugin note
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Sat, 13 Jun 2020 12:51:21 +0000 (14:51 +0200)]
📝 Update release notes
Chen Rotem Levy [Sat, 13 Jun 2020 12:50:14 +0000 (15:50 +0300)]
🎨 Update and clarify testing function name (#1395)
test_create_existing_token -> test_create_existing_item
Sebastián Ramírez [Sat, 13 Jun 2020 12:47:03 +0000 (14:47 +0200)]
📝 Update release notes
obataku [Sat, 13 Jun 2020 12:44:51 +0000 (08:44 -0400)]
🐛 Fix duplicated headers set by indirect dependencies (#1386)
* Added test for repeating cookies in response headers
* update `response` headers, status code to match `sub_response` in `solve_dependencies` only if necessary; fix formatting of scottsmith2gmail's test
* restore code coverage, remove dead code from `solve_dependencies`
Co-authored-by: Scott Smith <scott.smith.2@gmail.com>
Sebastián Ramírez [Sat, 13 Jun 2020 12:39:58 +0000 (14:39 +0200)]
📝 Update release notes
Nick Rushton [Sat, 13 Jun 2020 12:38:08 +0000 (05:38 -0700)]
⬆ Upgrade Starlette dependency to 0.13.4 (#1361)
Sebastián Ramírez [Sat, 13 Jun 2020 12:36:27 +0000 (14:36 +0200)]
📝 Update release notes
Aviram Hassan [Sat, 13 Jun 2020 12:33:27 +0000 (15:33 +0300)]
✨ Add better JSON decode error handling, improve feedback for client after invalid JSON requests (#1354)
* Request body error, raise RequestValidationError instead of HTTPException in case JSON decode failure
* add missing test case for body general exception
Sebastián Ramírez [Sat, 13 Jun 2020 12:06:12 +0000 (14:06 +0200)]
📝 Update release notes
Sebastián Ramírez [Sat, 13 Jun 2020 12:02:58 +0000 (14:02 +0200)]
📝 Update Tags metadata title
Thomas Maschler [Sat, 13 Jun 2020 11:58:06 +0000 (07:58 -0400)]
✨ Add support for tag metadata in OpenAPI (#1348)
* Allow to add OpenAPI tag descriptions
* fix type hint
* fix type hint 2
* refactor test to assure 100% coverage
* 📝 Update tags metadata example
* 📝 Update docs for tags metadata
* ✅ Move tags metadata test to tutorial subdir
* 🎨 Update format in applications
* 🍱 Update docs UI image based on new example
* 🎨 Apply formatting after solving conflicts
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Sat, 13 Jun 2020 10:27:00 +0000 (12:27 +0200)]
📝 Update release notes
Sebastián Ramírez [Sat, 13 Jun 2020 10:26:15 +0000 (12:26 +0200)]
🔧 Add basic setup for Russian translations (#1566)
Sebastián Ramírez [Sat, 13 Jun 2020 07:47:36 +0000 (09:47 +0200)]
📝 Update release notes
Xie Wei [Sat, 13 Jun 2020 07:45:48 +0000 (15:45 +0800)]
🔥 Remove obsolete Chinese articles after translations (#1510)
Sebastián Ramírez [Fri, 12 Jun 2020 23:25:29 +0000 (01:25 +0200)]
📝 Update release notes
Rupsi Kaushik [Fri, 12 Jun 2020 23:22:30 +0000 (19:22 -0400)]
✨ Implement __repr__ methods for path parameters to simplify debugging (#1560)
* repr description added to Depends class
* repr description added to Security subclass
* get rid of __repr__ in security since it will inherit from super
* make code format consistent with rest
* add desc for rest of the classes
* Update fastapi/params.py
remove trailing whitespace
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Implement __repr__
* fix formatting
* formatting again
* ran formatting
* added basic testing
* basic tests added to rest of the classes
* added more test coverage and simplified test file
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Jayati Shrivastava <gaurijove@gmail.com>
Sebastián Ramírez [Fri, 12 Jun 2020 23:17:06 +0000 (01:17 +0200)]
🔖 Release version 0.56.1
Sebastián Ramírez [Fri, 12 Jun 2020 23:14:58 +0000 (01:14 +0200)]
📝 Update release notes
Kai Chen [Fri, 12 Jun 2020 23:12:59 +0000 (16:12 -0700)]
📝 Add link to Advanced User Guide: response status code (#1512)
Sebastián Ramírez [Fri, 12 Jun 2020 22:57:34 +0000 (00:57 +0200)]
📝 Update release notes
kota matsuoka [Fri, 12 Jun 2020 22:56:00 +0000 (07:56 +0900)]
🎨 Remove unused f-string (#1526)
Sebastián Ramírez [Fri, 12 Jun 2020 22:55:20 +0000 (00:55 +0200)]
📝 Update release notes
Xie Wei [Fri, 12 Jun 2020 22:53:00 +0000 (06:53 +0800)]
🌐 Add Chinese translation for query-params-str-validations.md (#1500)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Fri, 12 Jun 2020 22:50:22 +0000 (00:50 +0200)]
📝 Update release notes
Xie Wei [Fri, 12 Jun 2020 22:47:50 +0000 (06:47 +0800)]
🌐 Add Chinese translation for body.md (#1492)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Fri, 12 Jun 2020 22:43:07 +0000 (00:43 +0200)]
📝 Update release notes
Xie Wei [Fri, 12 Jun 2020 22:40:05 +0000 (06:40 +0800)]
🌐 Add Chinese translation for help-fastapi.md (#1465)
* add chinese translation for help-fastapi.md
* improve translations
Co-authored-by: Waynerv <wei.xie@woqutech.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Fri, 12 Jun 2020 22:29:43 +0000 (00:29 +0200)]
📝 Update release notes
Xie Wei [Fri, 12 Jun 2020 22:26:40 +0000 (06:26 +0800)]
🌐 Add Chinese translation for query-params.md (#1454)
Co-authored-by: Waynerv <wei.xie@woqutech.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>