如何在 API 蓝图中指定一次所有响应的内容类型?

How to specify Content-Type of all responses once in API Blueprint?

为了让 Dredd 满意,我必须为我的 API 蓝图文档中的每个回复写下这个:

+ Response 201 (application/json; charset=utf-8)

有没有办法在全局范围内为每个响应指定一次媒体类型 ((application/json; charset=utf-8))?这会稍微清理文档。

据我所知,这不是受支持的方案。我建议您在 GitHub 的 API Blueprint 存储库上提交问题,以最终评估此功能请求!