大摇大摆地验证 HTTP 响应

Validating HTTP response in swagger

是否可以在 swagger 编辑器 and/or swagger ui 中验证 HTTP 响应?我需要检查特定响应是否具有我想要的结构和数据。 例如正文必须是 {"message":"pong"}.

Swagger Editor 和 Swagger UI 不验证针对架构的 API 响应。相应的 feature request 被标记为 "nice to have" 但 "out of scope for the project for now".

但是,由于这些项目是开源的,您可以自己实现此功能并提交拉取请求。