【发布时间】:2022-11-17 19:23:49
【问题描述】:
我的 openapi.yml 文件端点如下所示:
/v2/myendpoint:
get:
summary: Retrieve stuff
requestBody:
required: true
content:
application/json:
schema:
$ref: '../schemas/my_get_request.json'
在 my_get_request.json 中,我引用了 common.json 文件中的定义。
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://january.com/schemas/v0.2.1/my_get_request.json",
"type": "object",
"title": "MyGetRequest",
"properties": {
"unique_ID": {
"type": "string",
"description": "randomdescription"
},
"status": {
"$ref": "common.json#/$defs/blahStatus"
},
当我使用 Redocly 生成静态网页时,在 status 旁边我看到 string(blahStatus) 是否可以隐藏 string(blahStatus) 不显示以便用户看不到我在 common.json 中定义的内部命名?
【问题讨论】: