]>
git.ipfire.org Git - thirdparty/fastapi/fastapi.git/log
Sebastián Ramírez [Sun, 19 Jul 2020 20:11:28 +0000 (22:11 +0200)]
✨ Add internal GitHub action to deploy docs previews (#1739)
* 📝 Update release notes
* ✨ Add internal GitHub action to pull docs artifact
* 🙈 Add archive.zip to gitignore
Sebastián Ramírez [Sun, 19 Jul 2020 18:49:52 +0000 (20:49 +0200)]
🚀 Preview docs for external PRs (#1738)
* 🍱 Save docs zip when building docs
* 🙈 Add docs.zip artifact to .gitignore
* 🚀 Update deploy artifact name
* ♻️ Upload artifact directory
* ✨ Add WIP trigger docs preview
* ♻️ Update trigger docs preview
* 👷 Update env vars for docs preview
* 👷 Update PR extraction
* 👷 Try to show GitHub event
* 💚 Try to see if GitHub context templates is causing the problem
* 💚 Try to debug context GitHub event
* 🔊 Debug GitHub event context
* 👷 Update debugging action
* 👷 Update debug
* 👷 Update Action
* ♻️ Update script to trigger docs preview
* ⚡️ Try to use Zip again to improve speed
* 🔧 Update zip scripts
* ✨ Add preview docs on event
* 🚀 Trigger deploy preview on PRs
* 🐛 Fix trigger script env vars
Sebastián Ramírez [Sun, 19 Jul 2020 12:25:15 +0000 (14:25 +0200)]
📝 Update release notes
Sebastián Ramírez [Sun, 19 Jul 2020 12:24:24 +0000 (14:24 +0200)]
✅ Add XML coverage report for GitHub Actions (#1737)
Sebastián Ramírez [Sun, 19 Jul 2020 12:10:51 +0000 (14:10 +0200)]
📝 Update release notes
Sebastián Ramírez [Sun, 19 Jul 2020 12:09:55 +0000 (14:09 +0200)]
💄 Update badges, remove Travis (#1736)
* 💄 Update badges
* 🔥 Remove Travis
Sebastián Ramírez [Sun, 19 Jul 2020 12:04:45 +0000 (14:04 +0200)]
📝 Update release notes
Sebastián Ramírez [Sun, 19 Jul 2020 12:03:38 +0000 (14:03 +0200)]
👷 Add GitHub Actions, move from Travis (#1735)
Sebastián Ramírez [Sun, 19 Jul 2020 10:19:39 +0000 (12:19 +0200)]
📝 Update release notes
JAYATI SHRIVASTAVA [Sun, 19 Jul 2020 10:17:50 +0000 (15:47 +0530)]
✨ Add support for adding OpenAPI schema for GET requests with a body (#1626)
* add test for get request body's openapi schema
* 📝 Update docs note for GET requests with body
* ✅ Update test for GET request with body, test it receives the body
* 🔇 Temporary type ignore while it's handled in Pydantic
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Fri, 10 Jul 2020 18:41:35 +0000 (20:41 +0200)]
🔖 Release version 0.59.0
Sebastián Ramírez [Fri, 10 Jul 2020 18:32:16 +0000 (20:32 +0200)]
📝 Update release notes
tomarv2 [Fri, 10 Jul 2020 18:31:15 +0000 (11:31 -0700)]
✏ Fix docstring typo for oauth2 utils (#1621)
Sebastián Ramírez [Fri, 10 Jul 2020 18:26:29 +0000 (20:26 +0200)]
📝 Update release notes
Brian Mboya [Fri, 10 Jul 2020 18:24:38 +0000 (21:24 +0300)]
📝 Update JWT docs to use python-jose (#1610)
* 📝 Update JWT docs with python-jose
* 📝 Update format and use python-jose in docs
* ➕ Add Python-jose to dependencies
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Fri, 10 Jul 2020 17:46:36 +0000 (19:46 +0200)]
📝 Update release notes
Sebastián Ramírez [Fri, 10 Jul 2020 17:45:47 +0000 (19:45 +0200)]
🐛 Re-enable search bar after adding markdown-data plugin (#1703)
Sebastián Ramírez [Fri, 10 Jul 2020 17:34:22 +0000 (19:34 +0200)]
📝 Update release notes
Rupsi Kaushik [Fri, 10 Jul 2020 17:28:18 +0000 (13:28 -0400)]
✨ Auto-generate OpenAPI servers from root_path (#1596)
* root_path included in servers object instead of path prefix
* ♻️ Refactor implementation of auto-including root_path in OpenAPI servers
* 📝 Update docs and examples for Behind a Proxy, including servers
* 📝 Update Extending OpenAPI as openapi_prefix is no longer needed
* ✅ Add extra tests for root_path in servers and root_path_in_servers=False
* 🍱 Update security docs images with relative token URL
* 📝 Update security docs with relative token URL
* 📝 Update example sources with relative token URLs
* ✅ Update tests with relative tokens
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sebastián Ramírez [Fri, 10 Jul 2020 12:48:42 +0000 (14:48 +0200)]
📝 Update release notes
Sebastián Ramírez [Fri, 10 Jul 2020 12:47:56 +0000 (14:47 +0200)]
✏️ Fix external links typo/link (#1702)
Sebastián Ramírez [Fri, 10 Jul 2020 12:35:28 +0000 (14:35 +0200)]
📝 Update release notes
Sebastián Ramírez [Fri, 10 Jul 2020 12:31:44 +0000 (14:31 +0200)]
✨ External links in docs with data file (#1701)
* ➕ Add mkdocs-markdownextradata-plugin for docs
* 🔧 Update MkDocs config file(s) to include external data
* ✨ Add external links data file
* 📝 Use external data file in External Links
* ♻️ Update data files for langs
The cost is some duplication 😔, these files are updated by the script, but to be able to serve locally they have to be duplicated
* ✨ Update docs script to copy data files
* 🔥 Remove needed duplication of data files for live docs in translations
Sebastián Ramírez [Fri, 10 Jul 2020 10:24:03 +0000 (12:24 +0200)]
📝 Update release notes
Davide Fiocco [Fri, 10 Jul 2020 10:21:46 +0000 (12:21 +0200)]
📝 Fix link to edit External Links, add additional link (#1669)
Added a link to the correct link to editing the en docs, plus an additional example (of mine!) which got some buzz on social media:
https://twitter.com/monodavide/status/
1276913357388382212
https://madewithml.com/projects/1649/model-serving-using-fastapi-and-streamlit/
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