Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.7k
Add other Pydantic dict params to path operations#264
Conversation
codecovbot commentedMay 27, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## master #264 +/- ##====================================== Coverage 100% 100% ====================================== Files 183 190 +7 Lines 4539 4649 +110 ======================================+ Hits 4539 4649 +110
Continue to review full report at Codecov.
|
bs32g1038 commentedMay 27, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
To be honest, these are good features, but I think it makes
In my opinion, if the docs can auto generate the doc data by the real data, it will be a great thing. Besides, Fastapi can provide a util function to reduce code repeat. To sum up, I look forward to these features very much. |
tiangolo commentedMay 27, 2019
@bs32g1038 these additional parameters are mainly for completeness. The name of the parameters is temporal, as I think it's quite long. But I don't expect users to use them a lot. That's why they are at the end of the function. But for completeness, it might help some use cases. About your first use case, you can enable that behavior with one of these parameters (from a previous PR): That's something that can help some use cases, but others might need to keep the default values. |
bs32g1038 commentedMay 29, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@tiangolo thanks, I got it! |
Signed-off-by lmignon
Add other Pydantic dict params to path operations.
To include all the parameters supported by Pydantic's model's
.dict().