-
Notifications
You must be signed in to change notification settings - Fork 81
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
Response Promise any #159
Comments
你对比下你的swagger json 与 exmaple的例子 |
@Manweill 除了 response 那里用的 $ref 其它的没看出来区别,为什么一定要 ref 才能推出类型? |
你这手打的,生成的基本不会是你的结构,主要是content里面的内容,ref不是必定的。还一个是,openapi 2.0和3.0是有区别的 "/api/abp/api-definition": {
"get": {
"tags": [
"AbpApiDefinition"
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ApplicationApiDescriptionModel"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationApiDescriptionModel"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationApiDescriptionModel"
}
}
}
}
}
} |
@Manweill 就是生成的,并不是手打的。你发的这个是 swagger3,swagger2 content 就是我发的那样的 下面是 example 中 swagger2 的实例 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
为啥还有 Promise 这个问题。。看之前的 issue 已经解决了。
The text was updated successfully, but these errors were encountered: