Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🌐 Add Japanese translation fordocs/ja/docs/tutorial/body-fields.md#1923

Merged
tiangolo merged 19 commits intofastapi:masterfrom
SwftAlpc:translation/ja-tutorial-body-fields-md
Jan 15, 2024
Merged

🌐 Add Japanese translation fordocs/ja/docs/tutorial/body-fields.md#1923
tiangolo merged 19 commits intofastapi:masterfrom
SwftAlpc:translation/ja-tutorial-body-fields-md

Conversation

@SwftAlpc
Copy link
Contributor

@SwftAlpcSwftAlpc commentedAug 19, 2020
edited
Loading

This PR translates the tutorial/body-fields.md to Japanese.
Please review tutorial/body-fields.md

Issue#1571 generates a new directory to support Japanese.
PR#1656 generates a new directory for tutorial.
I will fix dependency after#1571 &#1656 are merged.

ycd reacted with thumbs up emojiycd reacted with hooray emojiycd reacted with heart emojiycd and tokusumi reacted with rocket emoji
@SwftAlpcSwftAlpc mentioned this pull requestAug 19, 2020
@codecov
Copy link

codecovbot commentedAug 19, 2020
edited
Loading

Codecov Report

Patch and project coverage have no change.

Comparison is base(cf73051) 100.00% compared to head(e1408a3) 100.00%.

❗ Current heade1408a3 differs from pull request most recent head372e5fe. Consider uploading reports for the commit372e5fe to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@##            master     #1923     +/-   ##===========================================  Coverage   100.00%   100.00%             ===========================================  Files          540       239    -301       Lines        13969      7079   -6890     ===========================================- Hits         13969      7079   -6890

see 356 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment?Let us know in this issue.

@github-actions
Copy link
Contributor

📝 Docs preview for commit9fc88ac at:https://5f3d4119908e2382bc6e75cd--fastapi.netlify.app


まず、以下のようにインポートします:

```Python hl_lines="2"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

hl_lines="4"


以下のように`Field`をモデルの属性として使用することができます:

```Python hl_lines="9 10"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

hl_lines="11 12 13 14"


`Body`は`FieldInfo`のサブクラスのオブジェクトを直接返すこともできます。そして、他にも`Body`クラスのサブクラスであるものがあります。

`fastapi`から`Query`や`Path`などをインポートする場合、これらは実際には特殊なクラスを返す関数であることに注意してください。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

`fastapi`から`Query`や`Path`などをインポートする場合、これらは実際には特殊なクラスを返す関数であることに注意してください。

`fastapi`から`Query`や`Path`などをインポートする場合、これらは実際には特殊なクラスを返す関数であることに注意してください。

!!! tip "豆知識"
型、デフォルト値、`Field`を持つ各モデルの属性が、`Path`や`Query`、`Body`の代わりに`Field`を持つ、*path operation 関数の*パラメータと同じ構造になっていることに注目してください。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

型、デフォルト値、`Field`を持つ各モデルの属性が、`Path`や`Query`、`Body`の代わりに`Field`を持つ、*path operation 関数の*パラメータと同じ構造になっていることに注目してください。


追加情報は`Field`や`Query`、`Body`などで宣言することができます。そしてそれは生成されたJSONスキーマに含まれます。

追加情報を追加することについては、後に例を宣言することを学ぶときに学びます。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

後に例を用いて宣言を学ぶ際に、追加情報を加える方法を学べます。

@github-actions
Copy link
Contributor

📝 Docs preview for commitc0b6e32 at:https://5f41529d848e3d0cb51f2eed--fastapi.netlify.app

Copy link
Contributor

@tokusumitokusumi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

@tiangolotiangolo added awaiting-review lang-allTranslations lang-jaJapanese translations labelsAug 29, 2020
@github-actions
Copy link
Contributor

📝 Docs preview for commit036485f at:https://5f4cbfe9a088291bc77b0ec4--fastapi.netlify.app

@github-actions
Copy link
Contributor

📝 Docs preview for commite1408a3 at:https://5f9aa2acd6418518b655b1a9--fastapi.netlify.app

@tiangolotiangolo changed the titleAdd tutorial/body-fields.md🌐 Add Japanese translation fordocs/ja/docs/tutorial/body-fields.mdJun 26, 2023
@tiangolotiangolo added lang-jaJapanese translations awaiting-review and removed lang-jaJapanese translations awaiting-review labelsJun 26, 2023
@tiangolo
Copy link
Member

📝 Docs preview for commit372e5fe at:https://6499c16045da210e5d1f21a2--fastapi.netlify.app

@tiangolo
Copy link
Member

As this was done by@SwftAlpc and reviewed by@tokusumi, champions of the Japanese translations, I will merge this. 🚀

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@tokusumitokusumitokusumi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

lang-allTranslationslang-jaJapanese translations

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@SwftAlpc@tiangolo@tokusumi@ryuckel

Comments


[8]ページ先頭

©2009-2026 Movatter.jp