Results of 1 - 4 of about 4 for docstring (0.003 sec.)
- Path Operationの設定 11224
- Path Operationの設定 path operationデコレータ を設定するためのパラメータがいくつかあります。 注意 これらのパラメータは path operation関数 ではなく、 path operationデコレータ に直接渡されることに注意してください。 レスポンスステータスコード
...nformation, name, description, price, tax and a set of unique tags" , ) async def create_item ( item : Item ): return item docstringを用いた説明 説明文は長くて複数行におよぶ傾向があるので、関数 docstring 内に path operation の説明文を宣言できます。すると、...FastAPI は説明文を読み込んでくれます。 docstringに Markdown を記述すれば、正しく解釈されて表示されます。(docstringのインデントを考慮して) Python 3.8+ from typing import S... - https://man.mtool.work/fastapi/0.115/tutorial/path-operation-configuration/
- Path Operationの高度な設定 10633
- Path Operationの高度な設定 OpenAPI operationId 注意 あなたがOpenAPIの「エキスパート」でなければ、これは必要ないかもしれません。 path operation で operation_id パラメータを利用することで、OpenAPIの operationId を設定できます。 operation_id は
...= FastAPI () @app . get ( "/items/" , include_in_schema = False ) async def read_items (): return [{ "item_id" : "Foo" }] docstringによる説明の高度な設定 path operation関数 のdocstringからOpenAPIに使用する行を制限することができます。 \f (「書式送り (Form... - https://man.mtool.work/fastapi/0.115/advanced/path-operation-advanced-configurat...
- 代替ツールから受けたインスピレーションと比較 8580
- 代替ツールから受けたインスピレーションと比較 何が FastAPI にインスピレーションを与えたのか、他の代替ツールと比較してどうか、そしてそこから何を学んだのかについて。 はじめに FastAPI は、代替ツールのこれまでの働きがなければ存在しなかったでしょ
...た。 これは多くのフレームワーク用のプラグインです (Starlette用のプラグインもあります) 。 仕組みとしては、各ルーティング関数のdocstringにYAML形式でスキーマの定義を記述します。 そして、OpenAPIスキーマを生成してくれます。 Flask, Starlette, Responderなどにおいて...があります。 エディタでは、この問題を解決することはできません。また、パラメータやMarshmallowスキーマを変更したときに、YAMLのdocstringを変更するのを忘れてしまうと、生成されたスキーマが古くなってしまいます。 情報 APISpecは、Marshmallowと同じ開発者により作成さ...プラグインよりもずっと人気があるべきです。ドキュメントがあまりにも簡潔で抽象的であるからかもしれません。 これにより、PythonのdocstringにYAML (別の構文) を書く必要がなくなりました。 Flask、Flask-apispec、Marshmallow、Webargsの組み合わせは、 FastAPI を構築する... - https://man.mtool.work/fastapi/0.115/alternatives/
- Release Notes 6527
- 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
...R #12387 by @tiangolo . ⬆ Bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.3. PR #12386 by @dependabot[bot] . ⬆ Bump mkdocstrings[python] from 0.25.1 to 0.26.1. PR #12371 by @dependabot[bot] . ⬆ Bump griffe-typingdoc from 0.2.6 to 0.2.7. PR #12370 by...move Fine.dev. PR #12271 by @tiangolo . ⬆ [pre-commit.ci] pre-commit autoupdate. PR #12253 by @pre-commit-ci[bot] . ✏️ Fix docstring typos in http security. PR #12223 by @albertvillanova . 0.115.0 Highlights Now you can declare Query , Header , and Cookie...anish translation for cookie-params docs/es/docs/tutorial/cookie-params.md . PR #11410 by @fabianfalon . Internal ⬆ Bump mkdocstrings[python] from 0.23.0 to 0.24.3. PR #11469 by @dependabot[bot] . ? Update internal scripts and remove unused ones. PR #1149... - https://man.mtool.work/fastapi/0.115/release-notes/
PREV
1
NEXT