swagger - 如何重用和附加特定的文本模板
问题描述
如下代码所示,我想重用 text/*
Bad request.Assert that the values provided adhere to the following order and comma separated':'originLng, originLat, destinationLng, destinationLat.
因此,在下面提到的其他部分中,如何重用相同的文本以 & 符号开头。我想要类似的东西
Ref_Response_OnResponse_String_401:
description: Authorization information is missing or invalid
*descriptionOnResponseString_4XX
content:
text/*:
schema:
$ref: '#/components/schemas/Ref_Schema_PlainText'
Ref_Response_OnResponse_String_404:
description: Bad request. *descriptionOnResponseString_4XX
content:
text/*:
schema:
$ref: '#/components/schemas/Ref_Schema_PlainText'
我想附加标有 *descriptionOnResponseString_4XX 的特定文本
代码:
Ref_Response_OnResponse_String_400:
description: &descriptionOnResponseString_4XX Bad request.Assert that the values provided adhere to the following order and comma separated':'originLng, originLat, destinationLng, destinationLat.
content:
text/*:
schema:
$ref: '#/components/schemas/Ref_Schema_PlainText'
Ref_Response_OnResponse_String_401:
description: Authorization information is missing or invalid
content:
text/*:
schema:
$ref: '#/components/schemas/Ref_Schema_PlainText'
Ref_Response_OnResponse_String_404:
description: Bad request.
content:
text/*:
schema:
$ref: '#/components/schemas/Ref_Schema_PlainText'
解决方案
推荐阅读
- reactjs - [React]:如果需要,UseRef to scrollIntoView 不同线程的最后一条消息
- sql-server - PARTITION BY 行值
- r - 如何根据一系列值匹配数据
- python - 我是否将 lgbm 正确用于分类特征?
- node.js - 删除文件夹共享点 Typescript 中的用户直接访问权限
- laravel - Laravel:未定义的变量帖子
- java - 在 Java 中将 2D 列表转换为 2D ArrayList
- database - 领域查询顺序是否一致?
- javascript - 尝试使用 Chrome API topSites
- c - C数组的反汇编给出了奇怪的结果