Sebastián Ramírez
53da56146e
🔖 Release version 0.37.0
2019-08-30 19:10:43 -05:00
dmontagu
c70f3f1198
✨ Add support for custom route class ( #468 )
2019-08-30 19:05:59 -05:00
b1-luettje
c90c4fb6c1
✨ Allow disabling Google fonts in ReDoc ( #481 )
2019-08-30 19:00:55 -05:00
dmontagu
6c6bdb6233
🔒 Ensure skip_defaults doesn't cause extra fields to be serialized ( #485 )
2019-08-30 18:56:14 -05:00
dconathan
3025a368c6
✨ Add support and tests for Pydantic dataclasses in response_model ( #454 )
2019-08-30 18:12:15 -05:00
Zoltan Papp
c5817912d2
🐛 use media_type from Body params for OpenAPI requestBody ( Fixes : #431 ) ( #439 )
2019-08-30 17:32:39 -05:00
Zoltan Papp
19c53b21c1
✨ Allow using custom 422 validation error and use media type from response class in schema ( #437 )
...
* media_type of additional responses from the response_class
* Use HTTPValidationError only if a custom one is not defined (Fixes : #429 )
2019-08-30 16:46:05 -05:00
Sebastián Ramírez
55c4b5fb0b
🐛 Fix "default" extra response with extra status codes ( #489 )
...
* 🐛 Fix lowercase "default" extra response
* 🐛 Fix model for responses, to allow "default" plus status codes
* ✅ Add test for "default" extra response
2019-08-30 16:34:47 -05:00
Zoltan Papp
73dbbeab55
✨ Allow additional responses to use status ranges and "default" ( #435 )
2019-08-30 11:17:42 -05:00
Sebastián Ramírez
417a3ab140
🔖 Release 0.36.0
2019-08-26 08:28:33 -05:00
dmontagu
38495fffa5
🐛 Fix skip_defaults implementation when returning a Pydantic model ( #422 )
2019-08-26 08:24:58 -05:00
dmontagu
483eb73b26
🐛 Use caching logic to determine OpenAPI spec for duplicate dependencies ( #417 )
2019-08-24 21:55:25 -05:00
Sebastián Ramírez
e71636e381
🐛 Fix mypy route errors after merging #415 ( #462 )
2019-08-24 20:05:44 -05:00
Vitaliy Kucheryaviy
f7f17fcfd6
✨ Allow empty routed path (issue #414 ) ( #415 )
2019-08-24 19:39:48 -05:00
Sebastián Ramírez
033bc2a6c9
🔖 Release 0.35.0
2019-08-07 14:12:15 -05:00
Pablo Marti
0c55553328
✏️ Fix typo in assert statement ( #419 )
2019-08-07 14:03:11 -05:00
Koudai Aono
06eb421934
Fix request body parsing with Union ( #400 )
2019-08-07 13:55:33 -05:00
Sebastián Ramírez
bf229ad5d8
🔖 Release 0.34.0 upgrading Starlette
2019-08-06 07:22:06 -05:00
Sebastián Ramírez
6bf3ab3b7a
🔖 Release 0.33.0, including Pydantic 0.30.0
2019-07-12 19:01:27 -05:00
James Kaplan
46a986cacf
⬆️ Upgrade Pydantic to 0.30 ( #384 )
...
* bump pydantic to 0.30
* 📌 Pin Pydantic to 0.30 as 0.31 hasn't been released
2019-07-12 18:56:25 -05:00
Sebastián Ramírez
e620aeb46d
🔖 Release 0.32.0, as PR ##347 might be a breaking change
...
in some specific cases
2019-07-12 18:32:30 -05:00
Sebastián Ramírez
d1e2e46b80
🔖 Release 0.31.1
2019-07-12 18:30:54 -05:00
Sebastián Ramírez
508f9ce954
🐛 Fix regression, Swagger UI with deep linking ( #350 )
2019-06-28 20:56:48 +02:00
Sebastián Ramírez
687065509b
🏗️ Fix same function names in different modules with composite bodies ( #347 )
...
* 🏗️ Implement unique IDs for dynamic models
like those used for composite bodies and responses. IDs based on path (not only on function name, as it can be duplicated in a different module).
* ✅ Add tests for same function name and composite body
* ✅ Update OpenAPI in tests with new dynamic model ID generation
2019-06-28 19:35:16 +02:00
Sebastián Ramírez
b30cca8e9e
🔖 Release 0.31.0, upgrading Pydantic to 0.29
2019-06-28 17:01:04 +02:00
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