コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 4 of about 4 for nice (0.003 sec.)
スキーマの追加 - 例 11946
スキーマの追加 - 例 JSON Schemaに追加する情報を定義することができます。 一般的なユースケースはこのドキュメントで示されているように example を追加することです。 JSON Schemaの追加情報を宣言する方法はいくつかあります。 Pydanticの schema_extra ... [ float , None ] = None model_config = { "json_schema_extra" : { "examples" : [ { "name" : "Foo" , "description" : "A very nice Item" , "price" : 35.4 , "tax" : 3.2 , } ] } } @app . put ( "/items/ {item_id} " ) async def update_item ( item_id : int , ... x : float | None = None model_config = { "json_schema_extra" : { "examples" : [ { "name" : "Foo" , "description" : "A very nice Item" , "price" : 35.4 , "tax" : 3.2 , } ] } } @app . put ( "/items/ {item_id} " ) async def update_item ( item_id : int , ... e : str = Field ( examples = [ "Foo" ]) description : Union [ str , None ] = Field ( default = None , examples = [ "A very nice Item" ]) price : float = Field ( examples = [ 35.4 ]) tax : Union [ float , None ] = Field ( default = None , examples = [ ...
https://man.mtool.work/fastapi/0.115/tutorial/schema-extra-example/
Repository Management Tasks 9893
Repository Management Tasks These are the tasks that can be performed to manage the FastAPI repository by team members . Tip This section is useful only to a handful of people, team members with permissions to manage the repository. You can ... f the team) can perform. Here are the general instructions for the tasks you can perform. Thanks a lot for your help. ? Be Nice First of all, be nice. ? You probably are super nice if you were added to the team, but it's worth mentioning it. ? When T ... ir frustration and show it without filter, in many cases exaggerating, complaining, being entitled, etc. That's really not nice, and when it happens, it lowers our priority to solve their problems. But still, try to breath, and be gentle with your an ... merged, a GitHub Action ( latest-changes ) will use the PR title to update the latest changes automatically. So, having a nice PR title will not only look nice in GitHub, but also in the release notes. ? Add Labels to PRs The same GitHub Action late ...
https://man.mtool.work/fastapi/0.115/management-tasks/
Using Dataclasses 7840
Using Dataclasses Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . FastAPI is built on top of Pydantic , and I have been showing you how to use Pydantic models to d ... s can do. So, you might still need to use Pydantic models. But if you have a bunch of dataclasses laying around, this is a nice trick to use them to power a web API using FastAPI. ? Dataclasses in response_model You can also use dataclasses in the re ...
https://man.mtool.work/fastapi/0.115/advanced/dataclasses/
Release Notes 7249
Release Notes Latest Changes 0.115.11 Fixes ? Add docs examples and tests (support) for Annotated custom validations, like AfterValidator , revert #13440 . PR #13442 by @tiangolo . New docs: Query Parameters and String Validations - Custom ... g dependencies, executing your own code , and particularly, waiting for the network . But you will probably still get some nice performance improvements just from the upgrade. The focus of this release is compatibility with Pydantic v1 and v2, to mak ...
https://man.mtool.work/fastapi/0.115/release-notes/
PREV 1 NEXT