-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌐 Add Japanese tranlsation for docs/ja/docs/tutorial/schema-extra-example.md
#1931
🌐 Add Japanese tranlsation for docs/ja/docs/tutorial/schema-extra-example.md
#1931
Conversation
…/ryuckel/fastapi into feature/add-japanese-translation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #1931 +/- ##
===========================================
Coverage 100.00% 100.00%
===========================================
Files 540 239 -301
Lines 13969 7079 -6890
===========================================
- Hits 13969 7079 -6890 ☔ View full report in Codecov by Sentry. |
📝 Docs preview for commit 92d28ac at: https://5f3ea0bac0f1baeb4f2b2662--fastapi.netlify.app |
|
||
<a href="https://pydantic-docs.helpmanual.io/usage/schema/#schema-customization" class="external-link" target="_blank">Pydanticのドキュメント: スキーマのカスタマイズ</a>で説明されているように、`Config`と`schema_extra`を使ってPydanticモデルの例を宣言することができます: | ||
|
||
```Python hl_lines="13 14 15 16 17 18 19 20 21" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hl_lines="15 16 17 18 19 20 21 22 23"
|
||
後述する`Field`、`Path`、`Query`、`Body`などでは、任意の引数を関数に渡すことでJSON Schemaの追加情報を宣言することもできます: | ||
|
||
```Python hl_lines="2 8 9 10 11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hl_lines="4 10 11 12 13"
|
||
例えば、`Body`にボディリクエストの`example`を渡すことができます: | ||
|
||
```Python hl_lines="19 20 21 22 23 24" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hl_lines="21 22 23 24 25 26"
@tokusumi |
📝 Docs preview for commit 425e9c0 at: https://5f41609c618e31e4b8a4bf10--fastapi.netlify.app |
📝 Docs preview for commit b62534b at: https://5f4cbf9c83248de318f6ba59--fastapi.netlify.app |
📝 Docs preview for commit 0259b1b at: https://5f9aa3a15a2a0541ef714858--fastapi.netlify.app |
docs/ja/docs/tutorial/schema-extra-example.md
📝 Docs preview for commit b7379a6 at: https://6499c2228f963500a17ce1a3--fastapi.netlify.app |
This PR translates the tutorial/schema-extra-example.md to Japanese.
Please review tutorial/schema-extra-example.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.