Validating REST messages against Swagger definition

前端 未结 2 579
野的像风
野的像风 2021-01-26 04:37

I\'m working within IBM Integration Bus and I found myslef in need of validation of the messages that I recive. Since IIB does not support any kind of validation in this regard,

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-26 05:13

    One option is the swagger-request-validator. It lets you validate requests/responses against a Swagger / OpenAPI definition.

    There are modules available for integrating with WireMock, Rest Assured, Pact etc., or you can use the validator directly.

    Take a look at the example usages for code samples on how to use it.

提交回复
热议问题