NelmioApiDocBundle 支持 swagger 2.0

NelmioApiDocBundle Support for swagger 2.0

我在 symfony 2 项目上工作 NelmioApiDocBundle v2.13.0 转储 Swagger-兼容 JSON API 定义基于 Swagger 1.2 是旧版本。 我搜索了很多有关 Swagger 2.0 的 NelmioApiDocBundle 支持的信息,但没有任何好的回应。 这些是我找到的链接:

我想知道 NelmioApiDocBundle 是否支持 Swagger 2.0。以及是否有其他捆绑包可以替代此捆绑包。

从这个 link 我发现:

I had worked with NelmioApiDocBundle before to integrate Swagger with a Symfony application and it is a wonderful tool to document your existing API code. But as NelmioApiDocBundle generates the Swagger file from the annotated source code the source must exist prior to the documentation. This did not match our desired workflow. What’s more, the future of NelmioApiDocBundle seems to be a bit uncertain as the William Durand, the current maintainer, thinks of deprecating the bundle.

威廉·杜兰德说:

I am thinking about slowly deprecating #NelmioApiDocBundle (feature-freeze first, then EOL).

twit