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 Chinese translation for Advanced - Path Operation Advanced Configuration #1447
🌐 Add Chinese translation for Advanced - Path Operation Advanced Configuration #1447
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1447 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 240 240
Lines 7101 7101
=========================================
Hits 7101 7101 Continue to review full report at Codecov.
|
!!! warning | ||
如果你并非 OpenAPI 的「专家」,你可能不需要这部分内容。 | ||
|
||
你可以通过参数 `operation_id` 将 OpenAPI 的 `operationId` 设置为在路径操作中使用。 |
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.
你可以在路径操作中通过参数 operation_id
设置要使用的 OpenAPI operationId
。
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.
The segmentation should be "You can set the OpenAPI operationId to be used | in your path operation | with the parameter operation_id."
|
||
你可以通过参数 `operation_id` 将 OpenAPI 的 `operationId` 设置为在路径操作中使用。 | ||
|
||
务必确保每次操作的 `operation_id` 都是唯一的。 |
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.
"each operation" could translate to "每个路径操作“
|
||
如果你想用你的 API 的函数名作为 `operationId` 的名字,你可以遍历一遍 API 的函数名,然后使用他们的 `APIRoute.name` 重写每个 *路径操作* 的 `operation_id`。 | ||
|
||
在此之前你要给所有函数添加 *路径操作*。 |
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.
你应该在添加了所有路径操作之后执行此操作。
``` | ||
|
||
!!! tip | ||
如果你手动调动 `app.openapi()`,你应该在此之前更新 `operationId`。 |
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.
”call“ always translate to "调用".Is here a typo?
@waynerv Thanks for your review. |
@Dustyposa @phy25 @yanever @Laineyzhang55 Please take a look. |
Thank you @RunningIkkyu ! 👏 👏 🍰 And thanks @waynerv and @Laineyzhang55 for the reviews 🙇♂️ ☕ |
Add Chinese docs for advanced/path-operation-advanced-configuration.md. Could you help review plz. @waynerv @Dustyposa