问题描述
在 Redocly 中,如何在 x-codeSamples 标签中引用外部文件? Redocly 参考指南:https://redoc.ly/docs/api-reference-docs/vendor-extensions/redoc-supported-extensions/#x-codesamples
在以下示例中,第一种情况(“示例请求”)正确呈现。第二种情况('Schema')仅呈现为“[object object]”。此标签是否支持 $ref 语句?
x-codeSamples:
- lang: 'Example request'
source: |
PetStore.v1.Pet pet = new PetStore.v1.Pet();
pet.setApiKey("your api key");
- lang: 'Schema'
source:
$ref: ../components/schemas/Test_schema.yaml
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)