在 OpenAPI v2.0 和 Swagger PHP 上,Produces 的注释是:
/**
* @SWG\Get(
* path="/posts",
* operationId="getPosts",
* tags={"Authentication"},
* produces="application/json"
* summary="Returns the posts",
* description="Returns the posts",
* @SWG\Response(
* response=200,
* description="Successful operation"
* ),
* )
*/
但是在 OpenAPI v3.0 和 Swagger PHP 上,我找不到如何在文档上注释产品,它指出它现在是响应的一个属性,@OA\Response
但我找不到我已经尝试放置"content" = "application/json"
但它不起作用的示例.