swagger UI中的对象枚举?
我的招摇过市规范中列举了其他定义:swagger UI中的对象枚举?,swagger,swagger-ui,swagger-2.0,Swagger,Swagger Ui,Swagger 2.0,我的招摇过市规范中列举了其他定义: "action": { "title": "Action", "description": "Action to apply to matching requests", "type": "object", "enum": [ {"delayAction": {"$ref": "#/definitions/delayAction"}}, {"abortAction": {"$ref": "#/definitions/abor
"action": {
"title": "Action",
"description": "Action to apply to matching requests",
"type": "object",
"enum": [
{"delayAction": {"$ref": "#/definitions/delayAction"}},
{"abortAction": {"$ref": "#/definitions/abortAction"}},
{"traceAction": {"$ref": "#/definitions/traceAction"}}
]
}
和delayAction
,abortAction
和traceAction
都已定义
但是在Swigger UI中,操作的模型是空的
如何修改我的招摇过市定义,使招摇过市用户界面可以在模型中显示动作
的定义?如果在定义中而不是在内联中定义,会发生什么?我遇到了同样的问题,你解决了吗?你的意思是动作
可以是延迟动作
的一个实例吗,abortAction
或traceAction
schema?如果是,您还可以发布这些模式的定义吗?