Sebastián Ramírez
54368e7b22
🔖 Release 0.30.1
2019-06-28 09:39:29 +02:00
Sebastián Ramírez
dcc1e1bcf8
♻️ Refine internal type declarations and logic around them ( #338 )
2019-06-27 20:51:17 +02:00
Sebastián Ramírez
76b6fd5c18
🔖 Release 0.30.0
2019-06-20 12:32:24 +02:00
Sebastián Ramírez
aa84ac8e3e
✨ Implement support for Pydantic's ORM mode ( #322 )
...
* ✨ Implement support for Pydantic's ORM mode
* 🏗️ Re-structure/augment SQL tutorial source using ORM mode
* 📝 Update SQL docs with SQLAlchemy, ORM mode, relationships
* 🔥 Remove unused util in tutorial
* 📝 Add tutorials for simple dict bodies and responses
* 🔥 Remove old SQL tutorial
* ✅ Add/update tests for SQL tutorial
* ✅ Add tests for simple dicts (body and response)
* 🐛 Fix cloning field from original field
2019-06-20 11:31:32 +02:00
dmontagu
87b7a63ff2
🔥 Remove unused regex in routing.py ( #314 )
2019-06-18 13:52:34 +02:00
Eric Du
5b3adfe449
✨ Use default response status reasons in additional responses ( #313 )
...
* default the description of additional response to status reason phrase
* fix 404 description
* fix lint warning
* allow custom response status code
2019-06-18 09:46:57 +02:00
James Kaplan
f0df79aa91
⬆️ Upgrade Pydantic to 0.28 ( #320 )
2019-06-18 09:37:40 +02:00
Sebastián Ramírez
c26f1760d4
🔖 Release 0.29.1
2019-06-13 18:47:43 +02:00
Sebastián Ramírez
6939621730
bug: Fix handling an empty-body request with a required body param ( #311 )
...
* 🐛 Fix solving a required body param from an empty body request
* ✅ Add tests for receiving required body parameters with body not provided
2019-06-13 18:37:48 +02:00
Sebastián Ramírez
7244e4b612
🔖 Release version 0.29.0
2019-06-06 14:31:50 +04:00
Sebastián Ramírez
5f7fe926ab
✨ Add support for Response parameters to set headers, cookies, and status codes ( #294 )
...
* ✨ Add support for declaring a Response parameter to set headers and cookies
* ✅ Add source for docs and tests
* 📝 Add docs for setting headers, cookies and status code
* 📝 Add attribution to Hug for inspiring response parameters
2019-06-06 14:29:40 +04:00
Sebastián Ramírez
5700d65188
🔖 Release 0.28.0
2019-06-05 21:13:32 +04:00
Sebastián Ramírez
bff5dbbf5d
✨ Implement dependency value cache per request ( #292 )
...
* ✨ Add dependency cache, with support for disabling it
* ✅ Add tests for dependency cache
* 📝 Add docs about dependency value caching
2019-06-05 21:00:54 +04:00
Sebastián Ramírez
09cd7c47a1
✨ Implement dependency overrides for testing ( #291 )
...
* ✨ Implement dependency overrides for testing
* ✅ Add docs source tests and extra tests for dependency overrides
* 📝 Add docs for testing dependencies with overrides
2019-06-05 15:43:18 +04:00
Sebastián Ramírez
e2fadcbc90
🔖 Release version 0.27.2
2019-06-03 22:03:24 +04:00
Sebastián Ramírez
c7db2ff858
🐛 Fix path and query parameters receiving dict as valid ( #287 )
...
* 🐛 Fix path and query parameters accepting dict
* ✅ Add several tests to ensure invalid types are not accepted
* 📝 Document (to include tested source) using query params with list
* 🐛 Fix OpenAPI schema in query with list tutorial
2019-06-03 21:59:40 +04:00
Sebastián Ramírez
2a7ef5504a
🔖 Release 0.27.1
2019-06-03 18:44:03 +04:00
Sebastián Ramírez
d262f6e929
🐛 Fix HTTP Bearer security auto-error ( #282 )
2019-06-01 09:57:45 +04:00
Sebastián Ramírez
3ed112e8a9
🐛 Fix type declaration of HTTPException ( #279 )
2019-05-30 19:43:02 +04:00
Sebastián Ramírez
9da626eb2c
🔖 Release version 0.27.0
2019-05-30 17:48:52 +04:00
Sebastián Ramírez
bd407cc4ed
✨ Refactor param extraction using Pydantic Field ( #278 )
...
* ✨ Refactor parameter dependency using Pydantic Field
* ⬆️ Upgrade required Pydantic version with latest Shape values
* ✨ Add tutorials and code for using Enum and Optional
* ✅ Add tests for tutorials with new types and extra cases
* ♻️ Format, clean, and add annotations to dependencies.utils
* 📝 Update tutorial for query parameters with list defaults
* ✅ Add tests for query param with list default
2019-05-30 17:40:43 +04:00
Sebastián Ramírez
83b1a117cc
🔖 Release version 0.26.0
2019-05-29 19:29:44 +04:00
Sebastián Ramírez
62af6e0eeb
✨ Separate Pydantic's ValidationError handler and improve docs for error handling ( #273 )
...
* ✨ Implement separated ValidationError handlers and custom exceptions
* ✅ Add tutorial source examples and tests
* 📝 Add docs for custom exception handlers
* 📝 Update docs section titles
2019-05-29 16:27:55 +04:00
Sebastián Ramírez
703ade7967
🐛 Fix path in path parameters ( #272 )
2019-05-29 13:34:46 +04:00
Sebastián Ramírez
a49d45eaa9
🐛 Fix response_model type to allow List[Model] ( #266 )
2019-05-27 21:56:20 +04:00
Sebastián Ramírez
3986f79029
🔖 Release version 0.25.0
2019-05-27 20:21:03 +04:00
Sebastián Ramírez
7b63bc5551
✨ Add include, exclude, and by_alias to path operation methods ( #264 )
...
* ✨ Make jsonable_encoder's include and exclude receive sequences
* ✨ Add include, exclude, and by_alias to app and router
* ✨ Add and update tutorial code with new parameters
* 📝 Update docs for new parameters and add docs for updating data
* ✅ Add tests for consistency in path operation methods
* ✅ Add tests for new parameters and update tests
2019-05-27 16:08:13 +04:00
William Hayes
d8716f94ae
✨ Add skip_defaults support for path operations (for #242 ) ( #248 )
2019-05-25 19:35:57 +04:00
Sebastián Ramírez
67f8cb3b4f
🔖 Release 0.24.0
2019-05-24 22:48:27 +04:00
James Kaplan
b087246f26
✨ Add support for WebSockets with dependencies, params, etc #166 ( #178 )
2019-05-24 20:41:41 +04:00
Sebastián Ramírez
fc89eb8f81
🔖 Release version 0.23.0
2019-05-21 23:26:28 +04:00
Steinthor Palsson
325edd5f00
✨ Add swagger UI OAuth2 redirect page for implicit/code auth flows in API docs ( #198 )
2019-05-21 22:39:58 +04:00
Trim21
01b43e6e25
⚡ Make Swagger UI, ReDoc and OpenAPI handlers be coroutines to improve performance ( #241 )
2019-05-20 18:34:33 +04:00
euri10
f54d8d57a4
✨ Make Swagger UI and ReDoc parameterizable to host offline assets for docs ( #112 )
2019-05-20 11:26:54 +04:00
Sebastián Ramírez
56ab106bbb
🔖 Release version 0.22.0
2019-05-16 18:09:11 +04:00
Sebastián Ramírez
e92b43b5c8
✨ Add parameter dependencies to path operation decorators and include_router ( #235 )
...
* ✨ Implement dependencies in decorator and .include_router
* 📝 Add docs for parameter dependencies
* ✅ Add tests for dependencies parameter
* 🔥 Remove debugging prints in tests
* 📝 Update release notes
2019-05-16 18:07:00 +04:00
euri10
adfbd27100
🐛 Fix OpenAPI URL format for Starlette convertors ( #234 )
2019-05-16 17:55:14 +04:00
Sebastián Ramírez
ca27317b65
✨ Add param functions, to override types, to make mypy happy ( #226 )
2019-05-15 21:25:11 +04:00
Sebastián Ramírez
7b2993682f
🔖 Release 0.21.0
2019-05-15 14:54:46 +04:00
Ricardo Momm
b0b88f9d5b
🔊 Raise from previous exception ( #195 )
2019-05-15 14:50:58 +04:00
euri10
f541d2c200
✨ Use a logger instead of the root logging ( #222 )
2019-05-15 14:43:31 +04:00
Derek J. Lambert
4a1648b04e
✏️ Minor spelling fix in routing ( #221 )
2019-05-14 22:04:18 +04:00
Sebastián Ramírez
5189c93d85
🔖 Release 0.20.1
2019-05-11 19:38:08 +04:00
Steve B
d675991a34
✨ add py.typed to ship typing information ( #209 )
...
As described in https://www.python.org/dev/peps/pep-0561/
2019-05-11 13:43:47 +04:00
Sebastián Ramírez
7f673cf4e9
🔖 Release 0.20.0
2019-04-27 17:51:31 +04:00
Sebastián Ramírez
3797c04946
✨ Use 401 with WWW-Authenticate for OAuth2 and add scope_str ( #188 )
2019-04-27 17:00:56 +04:00
Sebastián Ramírez
8e3a7699a3
🔖 Release 0.19.0
2019-04-26 13:48:30 +04:00
Sebastián Ramírez
192ebba2a2
♻️ Rename parameter content_type to response_class ( #183 )
2019-04-26 13:11:16 +04:00
Sebastián Ramírez
8880c4cb03
🔖 Release 0.18.0
2019-04-22 21:08:43 +04:00
Sebastián Ramírez
f216d340ec
✨ Add automatic header handling for HTTP Basic Auth ( #175 )
...
* ✨ Add automatic header handling for HTTP Basic Auth
* 🎨 Remove obsolete comment
2019-04-21 21:44:25 +04:00