Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/15.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
带json数据的Swagger PHP多部分/表单数据_Json_Swagger_Swagger Ui_Swagger Php - Fatal编程技术网

带json数据的Swagger PHP多部分/表单数据

带json数据的Swagger PHP多部分/表单数据,json,swagger,swagger-ui,swagger-php,Json,Swagger,Swagger Ui,Swagger Php,我正试图将我的新路由添加到我的swagger文档中,但我遇到了swagger在多部分/表单数据中显示JSON主体的问题。请求由两部分组成,第一部分是图像,第二部分是json结构。我没有收到任何错误,但是屏幕上没有显示json。如何获得一个多部分/表单数据,以显示具有json结构的多个属性 @OA\RequestBody( required=true, @OA\MediaType( mediaType="multipart/form-data",

我正试图将我的新路由添加到我的swagger文档中,但我遇到了swagger在多部分/表单数据中显示JSON主体的问题。请求由两部分组成,第一部分是图像,第二部分是json结构。我没有收到任何错误,但是屏幕上没有显示json。如何获得一个多部分/表单数据,以显示具有json结构的多个属性

@OA\RequestBody(
   required=true,
   @OA\MediaType(
       mediaType="multipart/form-data",
       @OA\Schema(
           @OA\Property(
               property="File",
               description="PDF or image supported",
               type="file",
               @OA\Items(type="string", format="binary")
           ),
           @OA\Property(
               property="Data",
               description="Archive data used to locat and archive the request",
               type="application/json",
               @OA\Schema(
                   @OA\Property(
                       property="targetTable",
                       description="Some dexcription here",
                       type="string",
                       example="Customer_ID"
                   ),
                   @OA\Property(
                       property="indexes",
                       description="Some dexcription here",
                       type="string",
                       example={{
                               "name":"first_name",
                               "value":"Fred"
                               },
                               {
                               "name":"last_name",
                               "value":"Flintstone"
                               },
                               {
                               "name":"form",
                               "value":"PhotoID"
                       }}
                 )
             )
         )
    ),
),