Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net core 在响应对象的虚张声势生成中更改$ref_Asp.net Core_Asp.net Web Api_Asp.net Web Api2_Asp.net Core Webapi_Swashbuckle.aspnetcore - Fatal编程技术网

Asp.net core 在响应对象的虚张声势生成中更改$ref

Asp.net core 在响应对象的虚张声势生成中更改$ref,asp.net-core,asp.net-web-api,asp.net-web-api2,asp.net-core-webapi,swashbuckle.aspnetcore,Asp.net Core,Asp.net Web Api,Asp.net Web Api2,Asp.net Core Webapi,Swashbuckle.aspnetcore,我正在为一个简单的api生成一个swagger,该api返回一个正确生成swagger响应的对象,如下所示。我的问题是,是否可以将MyCustomerMadeResponse的定义更改为customerResponse "responses": { "200": { "description": "Success", "schema": {

我正在为一个简单的api生成一个swagger,该api返回一个正确生成swagger响应的对象,如下所示。我的问题是,是否可以将MyCustomerMadeResponse的定义更改为customerResponse

"responses": {
                    "200": {
                        "description": "Success",
                        "schema": {
                            "$ref": "#/definitions/myCustomerMadeUpResponse"